One hundred years ago, Mustafa Kemal Ataturk transformed the Ottoman Empire into the modern, Westernized nation that Erdogan inherited. If only Ataturk was around to respond to this character.
When Erdogan was arrested years ago, he promised to be good from then on and the judge or panel of judges favored his release. A few years later he rose to power, his political party amended the Turkish constitution to remove the return-to-jihad features, and he purged the military, judiciary, and suppressed his political opponents.
As easy as it is to dislike him (and I do), he's better than whomever and whatever will follow, even assuming Turkey doesn't disintegrate in A) a civil war or B) overthrow and occupation by some outside power.
When it becomes immaterial whether Turkey descends into chaos, buh-bye to Erdogan.