What Hamas has done is horrendous and undefendable but there’s no military solution to removing extremism. They’ll just end up killing many more civilians than Hamas has murdered and cementing the next generation of extremists.
Israel will likely be able to crush Hamas as an organization but I doubt anything better will rise from its ashes. I’m certain it was Hamas’ goal to trigger such a reaction and with the escalation triggering a wider conflict.
But only with the direct intervention of China.