It is not a coincidence that I read these same comments last night too - the very same comments you highlighted and I also thought about...
Our enemies LOVE Erdogan because he is the one who managed to divide the nation and who brought all of the economic, demographic and foreign policy problems over Turkey with his corruption and incompetence. Our enemies love it when Turkey is poor, isolated, divided... But after this election I have a lot of hope for the future. Maybe even Erdogan will start understanding his mistakes- when I heard him last night se sounded like a guy who admits his defeat and sometimes this is the first step towards change.
His biggest mistake was allowing millions of refugees into the nation. If it weren't for this, the social, security and economic situation of the nation would've been significantly better today. Miles better.
The real question is, who advised him to keep the borders open? We de-mined our borders and essentially have an open border with Iraq, Iran and Syria to this day. That puny border wall isn't stopping anyone.
I hope that as you said, this election becomes a wake up call.