The hypothetical question has often been posed: "What happens if a democracy is established and the people elect an authoritarian government anyway?"
Now we know at least one outcome.
On one hand, a military coup against a democratically elected leader is troublesome. On the other, I feel like saying "good riddance to bad rubbish". The protests in Egypt were started by people who seemingly wanted a freer society, and then when Mubarak was gone the movement was basically co-opted by Islamists who have no interest in a real freedom. The Muslim Brotherhood isn't as bad as the Salafists, but they aren't that great either.
I suspect if they had been able to provide democratic outlets for people's frustrations, or at least had been able to do something about Egypt's wrecked economy, they would have been fine. Unemployed people are unhappy people, though, and they had high expectations that were not even close to being met.