Linked to all of this is the point that the Israeli govt helped create Hamas and also fund it.
"What you might not know is that this same group was actually created in part by Israel itself. While it may sound like a conspiracy theory, it’s actually a well-documented, open secret that Israel has helped finance and prop up Hamas for years.
“We need to tell the truth,” Israeli major general Gershon Hacohen, an associate of Prime Minister Benjamin Netanyahu, said in a 2019 TV interview. “Netanyahu’s strategy is to prevent the option of two states, so he is turning Hamas into his closest partner. Openly Hamas is an enemy. Covertly, it’s an ally.”
https://www.analystnews.org/posts/how-israel-helped-prop-up-hamas-for-decades