Erdogan understood long ago that Turkey would never be accepted in the EU (even with big pressure coming from USA and UK) and has used the EU membership as a bargaining chip.
Now the membership option is openly dead, and Erdogan can proceed with his fundamentalist agenda.
Also, having been clearly betrayed by EU and OTAN in this military coup, he really has nothing to worry about anymore. Turkey will be out of NATO soon, and it will become a Russia ally.
What a blunder the west is playing: only 25 years after the URSS collapse, and instead of integrating Russia into the global institucions, the USA decided to proffit the strategic advantage to expand and provoke. We have managed to turn the possibility of true global integration, collaboration and progress into a new cold (actually warm and soon hot) war.