Hamas was a creation of the Israeli government. Maybe they should have just tried to make peace with Fatah but instead they created a monster and the blow back is killing civilians from both communities.
Hamas is the elected government of Gaza. Israelis didn’t elect Hamas. Gazans elected Hamas as their government. Have Palestinians supported many anti-Hamas demonstrations? It seems like very many Arabs and Palestinian Arabs have supported Hamas’s terrorist attacks against Israel.