The main reason I think it played out differently is that Portugal is considered more united in its other political views than Spain. Even in Portugal the 2015 election that ended (sort of) the austerity policies was highly contentious/fractious. Madrid could not tolerate that kind of clusterfuck without also risking e.g. Catalonian independence. Related to that Portugal also does not have the other half Spain does, the US political backing which works in tandem with the German economic power.
That said, if you listen to German politicians they still don't believe Portugal is out of the GFC and would reinstitute austerity there in a heartbeat given the chance.