It does matter and you're wrong.
They aren't targeting civilians solely because of their race. They're targeting Hamas fighters and infrastructure, who are using civilians as human shields. To prove genocide you have to prove intent. Thats the key test. There's no doubt that the Nazis intended to exterminate every Jew (and others of various groups) as a matter of intent. That was genocide.
As has been pointed out by a few people, if there was an attempt at genocide in Gaza then the pattern of attacks by Israel would have been totally indiscriminate and there would have been vastly more casualties. Now if you're talking about October 7th, where people were targeted because they were Jewish, that's a different matter entirely.