It was a genuinely garbage ending.
It comes off as very spiteful from Nintendo to the player, indirectly showing your effort to "save the princess" is generally unwanted and a waste of time on a larger scale.
You don't write the story based around a wedding, wedding planners, crashing the ceremony, honeymoons, etc just to cuck the hero at the final moment and have the bride try to abandon him on the moon.
I'd rather no plot than a spiteful plot, regardless of how paper thin.