the problem with Hamas' actions isn't that they're "vile" but that they play into Israel's hands.
not that there is anything Palestinians could have done to save themselves - there wasn't.
their only choice was - accept defeat or fight and try to take as many enemies with them as they can.
as Sun Tzu wrote you have to win first and fight only after victory has been achieved - this is what Israel does.
"he who fights first and then tries to win is destined to lose" - that would be Hamas.
the battlefield only makes official the victory that has been achieved elsewhere. the Jews have been consolidating power and influence for thousands of years - there is nothing a few home made rockets can do to change this.