Israel is doing colonial violence to steal land and do ethnic cleansing. Hamas is doing anti-colonial violence to free themselves from people oppressing them.
You could argue that Israel is doing this because Hamas is so bad, but then you look at what Israel is doing in the other part of palestine not controlled by Hamas? Daily pogroms and violent ethnic oppression of all kinds.
The problem is that Israel is based on ethnic supremacy. The way the victims (the palestinians) react is not relevant.