Maybe, maybe not. Israel has some cards up its sleeve. They gave repeated evacuation warnings, dropped leaflets, flyers, texts, and phone calls. They imported 2 million tons of food, 700k polio vaccines, etc. Gaza has the lowest malnutrition rate in the Middle East. If the ICJ found them guilty of genocide, there's no reason for any country to go through that again. Israel made their case much harder by Netanyahu, Ben-Gvir, Katz, and Smotrich repeatedly promising to clear out Gaza. Ben-Gvir took it further by urging indiscriminate killing of random civilians.
Basically, the extremism in certain elements of Israeli society made their war much harder than it needed to be. The public basically demanded extreme and unforgiving speech against Palestinians, ignoring the international consequences.
If Israeli leadership kept its mouth shut, and if their soldiers had the discipline to not put their antics on social media or sit down for interviews with anti-Israel "documentaries" they would be in a more advantageous position in the ICJ.