Hamas is a genocidal terrorist organization. They said it themselves

Our purpose is to preserve the State of Israel, to protect its independence, and to stop its enemies from disrupting everyday life for Israel's citizens and residents.