If Israel - which has one of the best militaries and intelligence services in the world - wanted to commit actual genocide it could in a day.
Nice 1:1 repetition of, quite literally, the internationally wanted for war crimes and crimes against humanity Benjamin Netanyahu's latest talking point!
However, that is not how genocide works in practice - never has been. Genocide, as a concept as originally defined by Rafael Lemkin and (in a much narrower version than what he originally envisioned) eventually legally codified, is not about literally killing everybody at once but about destroying a group as a group, in whole or in part. Lemkin started his work on genocide prior to what we now refer to as the "final solution" stage of the Holocaust (Einsatzgruppen; extermination camps) being widely known and based it primarily on his observations of other events in Eastern Europe.
If the definition of genocide you imply here were correct, neither the genocide of the indigenous people of various settler-colonies (think: the Americas, Australia, New Zealand, …) nor, indeed, even the Warsaw Ghetto would be considered genocidal.
"We just need to protect ourselves" has always characterised how perpetrators have framed their genocidal actions. Native resistance preceeded the Trail of Tears. Even the literal Nazis - yes, falsely so - framed their actions as self-protection against the existential threat of supposed "Judeobolshevism".
But arguably the closest parallen to Gaza 2025 is the genocide of the Herero and Nama people in what is now more or less modern day Namibia by German colonial forces: Perpetrated between 1904 and 1908, it was characterised by massacres, ethnic cleansing, concentration camps and, yes, starvation! More than 100 years after the fact, Germany finally acknowledged it and issued an apology.
It was triggered by an attack on German settlers, including civilians.