If Israel and Iran ended up in a real fight (which is the result of this attack succeeding) Palestine would have been hit really hard really fast. There’s no way they end up risking leaving Palestine in a position to fight back while they send resources elsewhere.
Sure, it was retaliation, but the result would have been horrible for so many innocent people.