Really horrible regimes often get power and popularity from resisting or violently countering external oppression. Like this is a long-standing, extremely predictable part of how humans in groups work under oppressive threat: those who are on the literal sharp end of the oppressive action often latch on to any way to lash back, and anything that feels like it promises either safety or at least the emotional satisfaction of retribution.
That being where it comes from doesn't make the horrible regime less horrible. That's where the Taliban came from. It's a major force behind the Rwandan genocide in the 90s. It's tangled up in the massacres and ethnic cleansing of the Balkans.
(And these regimes are universally just as oppressive and violent to 'their own' people - they usually need the external enemy in order to maintain the unity that gives them power. This is why Hamas is more concerned with getting people to throw themselves in front of IDF fire than it is with making sure people are fed.)
That Hamas is itself horrific and totalitarian does not actually make apartheid policies, settler encroachment and the abuses perpetrated on Palestinians, many of which end in death amongst all the other suffering, okay; and the fact that Israel as a state/political entity carries out those policies and abuses does not make Hamas' stated, impassioned goal of retributive genocide, or the steps it tries to take towards that goal, okay.
These things do not balance each other. There is no balance. There is no cancelling out; this is not a set of scales. This is a dialectic that needs to be faced head on.
If you feel like that leaves you without someone to "root for" in an uncomplicated way, maybe consider the fact that massive complex conflicts involving the legacies of hundreds to thousands of years of the ways that human beings are shit to one another and kill each other aren't a fucking sports match.
It feels shitty; it makes everything feel more awful, and scary, and further from a solution. But it's also how shit is.