There are two possible scenarios for Hamas.
In the first, they launch an attack on Israel, evacuate their civilians, and fight a conventional war. Israel responds, targets their fighters directly, and ultimately defeats them with minimal civilian casualties.
In the second - which is what we’ve seen - they launch an invasion, deliberately keep civilians in harm’s way, embed themselves in homes, hospitals, and schools, and build terror tunnels beneath densely populated areas. This forces Israel into a brutal dilemma: either strike and risk civilian deaths, or hold back and let Hamas regroup. Either way, the world watches, then blames Israel, not Hamas.
The war is won militarily, but antisemitism explodes globally after decades of infiltration, and Hamas gains propaganda victories by turning dead civilians into weapons.
Given those two choices, it’s no surprise which one Hamas picked. They don’t aim to win on the battlefield, they aim to win in the court of public opinion, even if it means sacrificing their own people.