Hamas as a group only exists because of decades of oppression by the Zionist regime. Eradication of Hamas will not lead to eradication of attacks on Israel because the people of Palestine want revolution and cannot let the status quo continue: it’s just a question of when and how.
You can’t kill this hydra without ending the life of every Palestinian in Gaza.
In general, revolutionary groups are formed as a product of circumstance: the American Revolution by British oppression, the French Revolution by Bourbon oppression, the Russian Revolution by Tsarist oppression, and the Chinese Revolution by Ming oppression. You can’t have revolution without oppression and oppression will, by nature, lead to revolution.
It exists for a variety of reasons, but if you want to boil it down to something, I would say the main is extreme religious jihadist beliefs and not “zionism”.
According to polls, Gaza is actually split about Hamas. The majrotiy is in favor but not by much, and it’s safe to assume some answer in fear, and IMO, many out of brainwashing. But already - if you belive the polls - the statement that “Hamas is Gaza” is incorrect.
Annecdotaly, I’d say the younger generations in Gaza don’t identify with Hamas and are not holding the same religious beliefs and motivations.
I disagree on labeling Hamas as a revolutionary group. IMO they are the oppressors. They are a terrorist group that is the true oppressors of Gaza, concerned by corruption, greed and extreme religious jihad, the real perpetrators of that mental and physical prison that is current Gaza.
The revolution would be Gazaists rising against Hamas.