Not only to avoid conflict, but it was just the beginning of his ministry, and it wasnt yet time to confront these leaders openly, so he left Jerusalem
Jesus didn’t see class, culture, financial status, He see people. The Samaritans were classified as outclass (dogs) but Jesus broke down the barrier to present salvation to a culture that needs to understand that salvation is for all.