Factions like ISIS aren't a viable parallel considering they were equally, if not more brutal to the people in the nations they lay sieged on, and were despised with even more fervour by the people of Iraq and Syria, who by the way played an equal if not bigger role in annihilating them.
The reason Hamas continues to exist is because of Israel's heavy handed response, spawning generation after generation of grief-stricken Palestinians with nothing to lose, being easy prey for their recruitment drive.
Hamas was created to destroy Israel and subsequently turned into an Iranian proxy since the Iranians have the same goal. Therefore, no Israeli action short of closing up shop and having all Jews leave the area would've assuaged them. Likewise as we're now finding out, no Israeli policy short of getting rid of Hamas will be acceptable, as they now see the existence of Hamas as an existential threat to the future of Israel.