You can't just stamp out a guerilla resistance the way Israel have tried to do. I suspect Hamas reckoned that a well-timed short term sacrifice would turn global opinion against Israel.
So what did they really lost? Do they even care that some Europeans don't like them ? Europeans are not the one who sell them 99% of their weapons.
Yes, US is supporting them to. They are losing from both sides, though. They may have part of the remaining generation in power and that's it.
Witness Tucker Carlson dismantling Huckabee, and Zionist ideology, recently.
Where it ends up, no one knows. But this is different.
I highly recommend to watch the Oscar winning movie “no other land”, for anyone that thinks that Israel would just let them leave in peace
Also it is a two way street, there is also a problem of Palestinian settlers, which while I do want to highlight is separate and in no way justifies the Israeli ones, is still a real problem and harnesses a lot of bad publicity when Israel destroys said illegal settlements.