They have a cure already. They have giant walls, the iron dome missile defense system, hundreds of drones patrolling Gaza, supposedly a state of the art intelligence apparatus, mass mandatory recruitment (well... Except for the orthodox Jews), large towers, fences, etc. There's a reason this is unprecedented. They just had their resources positioned to take over West Bank settlements instead, and ignored warnings from multiple sources about an imminent attack. Their leadership fucked up. And are continuing to fuck up by positioning the rest of the world against their genocide.
The thing is more genocide won't fix the cancer. The US figured that out in Vietnam, North Korea, Iraq, Afghanistan, etc. It just makes the survivors want to kill you more. That doesn't fix the cancer like you think it does. It was fine for the US to fuck up those other places because we can just leave and we often make a bunch of money during the conflict, but Israel can't. They need to learn to coexist, take lessons from places like South Africa, or the UK and IRA. It was actually negotiating that stopped the attacks in those places. They tried the killing everyone thing for awhile but it doesn't work.
Personally, I think the cure is teaming up with a local alternative secular group, like the PLO, and empowering them without undermining their authority and support by doing things like the shit they do in the West Bank, or preventing travel between the two sectors from, or controlling their water, power, food supply, etc, or giving up on negotiations because Hamas does an unrelated terrorism. It's like negotiating with MLK, Jr so you don't have to negotiate with Malcolm X. Hamas has negative popularity but no one has the resources to stop them, and no random civilians are going to bother trying to while Israel controls more aspects of their daily life in a more obviously negative way (electricity, water quality, incoming supplies, travel, work visas, drone buzzing, etc.). And to demand you do before helping them even though you have all the power in the relationship is like the cops telling a mom and pop shop to try fighting the mafia first before they do something about the mafia extorting them.
I mean, it is. Democracies can do genocides without being fascist. It's not great, but it's true. The alternative is Trump, who probably wouldn't even be making lip service to a ceasefire or mentioning the West Bank settlements like Biden has.