And I'm sure Erdogan thinks what he is doing is best for his country as well. In all honesty, I think Mugabe, Gadaffi, Assad, insert favourite dictator of your choice, genuinely believe that what they are doing is necessary and best for their country.
For example, the Kurdish insurgency in Turkey seems to have been taken on by people who want to criticise Erdogan as Erdogan's issue, his problem, as if he created it, ignoring that it is actually a problem that has been ongoing for decades, that the Turkish military has been committing atrocities in the SE for decades and that most ethnic Turks consider it unacceptable to have a large chunk of their country cleaved off.
Now, I'm all for self determination and don't agree with the above. But I'm sure that Erdogan sees the response to the Kurds as best for the country (just as he did when he was trying to negotiate before). Whether that is the best or not is a whole other matter.