If Hamas outlasts Israel, it will be because of Yahya Sinwar. From Eric Striker at unz.com:

Yahya Sinwar. Credit: farsnews.com, CC BY 4.0
In a window of six hours, Palestinian special forces soldiers used conventional and unconventional tactics to bypass the sophisticated security zone that has long enclosed the heavily surveilled people of Gaza and kill over a thousand Israelis — primarily armed militiamen in their settlements and Israeli soldiers in their bases — while capturing hundreds more. October 7th will go down in history as the most devastating attack on the Zionist project in all of its history.
This act triggered an erratic, poorly planned rampage by the Jewish state that has shocked the world and turned Israel into a pariah. The International Criminal Court, an institution created by the Zionist inventors of human rights doctrine and international law to punish their enemies in the Third Reich and the Arab world, has even issued arrest warrants for Israeli leadership.
The decision to subject themselves to this fate was not made lightly, it was an existential gamble taken as a last resort according to the most elemental principle of all: to be or not to be.
World events in the last 35 years have been disastrous for the Palestinian cause. The fall of the Soviet Union in 1991 meant the demise of the movement’s chief diplomatic and military backer. The 1993 Oslo Accords effectively destroyed the PLO’s threat as an armed entity, which predictably led to the Jewish state throwing out its side of the bargain by swallowing up more and more of the West Bank as the corrupt Palestinian Authority looks on.
You have the watches but we have the time.
Some war cabinet members are resigning in Israel as well.
Stated reason was no plan for what comes next.
ICC needs to show the same resolve.