Shouldn't we all be opposed to Nazism? Shouldn't we all be against slavery? Of course. But in the present discussion, I can be opposed to the atrocities of October 7th, while being sympathetic to the plight of Palestinians, just as I can be opposed to the destruction of Gaza while having compassion for the Israelis.
Being critical of either side doesn't mean I'm against them.
The side that's now being maimed and killed in the tens of thousands with no recourse, had nothing to do with October 7. The sides that are relevant here in the context of this ICJ case are the civilians of the Occupied Palestinian Territories and the Government of Israel.