In fairness Israel isn’t struggling to beat Hamas. They could quite handily just carpet bomb the place to oblivion and kill 2 million people. It’s not really any bigger than Grozny, and we saw what even the Russians managed to do to that.
But that doesn’t tend to sit well with anyone, not even the US. Better to commit genocide by making the survivors leave and stealing their land, rather than going full holocaust on them.
Still, they’ve killed 2% of Gaza in a year. Give them 50 more and there won’t be a Gaza Strip.