Bingo.
If Israel didn’t want the government next door to be Hamas, they shouldn’t have systematically attacked civil society in Gaza until they’re all that’s left.
It goes deeper than that. They encouraged Hamas.
https://www.timesofisrael.com/for-years-netanyahu-propped-up-hamas-now-its-blown-up-in-our-faces/