Well the problem is one is the occupier and the one is the occupied. And people talk as if Hamas is the Palestinians problem and that it all started October 7th.
Treat people and respect them as humans, don’t put them in open-air prisons, and divide people into an apartheid system, then maybe you won’t have any terrorist attacks and/or rapes.
Hamas was elected to government in Gaza in one of the few elections the occupier has allowed, and there are plenty of parts of Hamas which is not military, the Palestinians want freedom and peace, and resistance against the occupation is also fighting, or politics, be it PLO or Hamas.