Play stupid games, win stupid prizes. Israel was an overreach for the court - hell, everything about Israel and international bodies is blatantly biased, if you try to take any baseline whatsoever. Africa's conflicts, Ukraine, previous wars etc. It works only if you consider Israel in a void, or in a category of its own. There were conflicts in Africa this summer that killed more people than died in all of Gaza's recent conflict, and got exactly 1% of the public indignation and UN resolutions.
International bodies are incredibly useful, but only if they avoid being used as political tools. And lately they've been delivering failure after failure. ICC, UN, WHO...
The correct solution in Israel was always UN troops. But that'd involve UN getting their hands dirty and doing something other than giving resolutions.