As if there was any other realistic solution to the situation...
Right, exactly. If you're economically illiterate and believe austerity to be
technically necessary in some sense, then you can minimize the importance of the fact that the EU very obviously forced these national governments into policies that were rejected by the populations the national governments were supposedly serving.
But I'm not economically illiterate, and I'm here to tell you that far from being a "realistic solution to the situation" austerity simply made "the situation" worse, as it was undoubtedly intended to do. Austerity failed on its own terms of making the government of Greece better able to pay back its debt. That is what it always does, because there is no way to pay back a debt by contracting GDP and destroying the ability to repay it.
The "realistic solution," if anyone was actually worried about Greece repaying its debt, would be what historically has been done in every analogous situation: write off some of the value of the debt to bring the principal down to a manageable level, and draw up interest rate terms that actually allow the government in question to keep up with payments.
But that wasn't on the table, because the real reason for austerity was not technical, it was political: namely, that in the EU the banks which were the creditors of the Greek government have political power, but the Greek people have none. The Greek 'debt crisis' was seen as an opportunity to enforce the standard neoliberal agenda on Greece, to redistribute tremendous amounts of wealth from the Greek population to the government's creditors.