Was the Hamas attack genocide? They definitely intended as such; and killed over a thousand people indiscriminately with the aim of causing as much damage as possible.
But you cannot look at Israel’s actions and say what they’re doing isn’t genocide. That “this is war” is no excuse for the sheer scale of war crimes being committed.