However, there's no such thing as "unsuccessful genocide". Wanting to commit genocide and even terrorist bombings which target the population you'd like to exterminate are not genocide. To be committing the crime of genocide, you have to actually be in a position where you are actively displacing or exterminating a population.
Israel is committing genocide in Gaza since October 7th, because they are actively working towards a goal of eliminating the Palestinian population from the Gaza territory, or at least from the majority of it. They have already achieved a part of the genocide. They're not going all scorched earth and killing by the millions for the same reason they're not launching one of their illegal nukes in Gaza: they fear international reaction if the move is too sudden and overwhelming.
Hamas, by contrast, is not committing genocide in Israel, because it's not actively killing or starving or displacing any part of the population of Israel. I'm sure Hamas would love to do that, but it's a simple obvious fact that they're not succeeding. This is like claiming that Al Qaeda has an ongoing campaign of genocide of the West, because of 9/11 and some other attacks on, say, British troops.
Genocide is legally a set of acts committed with the intent to destroy a national, ethnic, racial, or religious group.
So yes, what Hamas did on Oct 7 was not genocide, and similarly what Israel does on any given day in Gaza is not genocide. Rather they are both part of ongoing campaigns that arguably are genocide.