Actually, those are Hamas claimed numbers. The IDF numbers claim more than 8,000 dead combatents, that’s actually a more than reasonable civilian to combatant ratio comparing to recent and less recent conflicts.
I know that sounds a bit heartless, but given the population density in Gaza it’s quite clear there’s no genocide intent here.
I would even argue that the Israeli army did more to save Palestinian lives than Hamas, who put them in an impossible situation for the sake of Jihad.