Genocide is about intent. The party must be acting with intent to destroy the nation or group.
So yes, it's about why they fight.
Here's another rebuttal: https://archive.is/https://www.nytimes.com/2025/07/22/opinio...
By the definition of genocide, it's actually Hamas that is genocidal. See: https://www.cambridge.org/core/journals/israel-law-review/ar... or the discussion on https://old.reddit.com/r/Israel/comments/1nm3jk8/genocide_is... for a lay interpretation with remarks from a Genocide scholar.