This is putting your head in the sand. The problem is the people, the voters, who put Putin and Erdogan in office and kept voting for more autocracy instead of democracy. Those presidents are just manifestations, symptoms.
There's always going to be a candidate like that to vote for, and democracy can only survive as long as voters prefer candidates who uphold democracy.