Hamas is a resistance group. Their aim is the liberation of Palestine. IDF is a genocidal army, their aim is the eradication of Palestinians from the land of Palestine. One of these is doing anti-colonial resistance, the other is doing a genocide. Israel has stripped Palestinians of any political means of resistance, so the group naturally resorts to violence to achieve their goals (as horrible as that is). There is a big difference here. Israel is doing a genocide, Hamas is not.
And before you start accusing me of anti-semitism I am gonna be ahead of your game and remind you that your anti-academia stance rhymes a helluva lot with the cultural Marxism conspiracy theory, which is an actual anti-Semitic conspiracy theory, unlike credible accusations of genocide.