Should they get the chance, their intention to repeat October 7th has been clearly stated - it's in their charter. What does anyone do under those circumstances? For those who argue that Israel is an illegitimate State, I guess the practical question is where should the 9.5 million colonialist Israelis move to? And who would accept them?
"There shall be no recognition of the legitimacy of the Zionist entity". https://www.middleeasteye.net/news/hamas-2017-document-full