In contrast, a case could be made that moderate Al Sisi came to power in Egypt through a coup. In fact, Turkey has a history of coups in favor of moderate secularism.
The reason coups in favor of moderates have happened in those muslim countries is because their military forces have been loyal to the people rather than to a dictator.
Al Sisi coming to power was a course correction to the egregious error Obama made (on purpose???) of aiding and abetting the rise of the Muslim Brotherhood in Egypt during the "Arab Spring". Thankfully that coup was carried out before damage was done to the military with purges of secular generals and senior enlisted.
Same can't be said in Turkey.
Erdogan started his consolidation of power about 4 years ago when he rounded up 400 current and retired Generals and tossed them in jail. IIRC he's replaced all of the top Generals with radical Islamists and the second largest military in NATO has effectively been neutered. Any semblance of resistance from the military was blunted in Erdogan's staged coup attempt that allowed him to round up nearly 10,000 "plotters" and toss them in jail as well as rounding up journalists and teachers for the same fate.
That is the guy Trump is calling to congratulate for his "victory"...the same thug who was so desperate to get enough votes to allow his consolidation of power to pass he was campaigning to ex pats living in Western Europe.