Equating every Palestinian with Hamas isn’t a fair way of looking at the situation. If a two state solution is made a reality then there would be less anger on the Palestinian side leading to less radical actors appearing like Hamas in Gaza. It would have to be in the West Bank.
Obviously the October 7th event was heinous, though so is the slaughter of innocents during the IDF’s bombing campaign of Gaza. They have suffered enough and need their own homeland in the same way that Israel needs it.