You don't need to compare the military forces. You can compare the casualties on both sides or, for a different perspective, you might count the civilians killed inside their own territories (you might count the West Bank if you really want accurate numbers).
Forced displacement is also considered a war crime and, considering what is happening in Gaza and at the West Bank, it would qualify as genocide as well.
The IDF has killed not just a higher number but also a higher percentage of civilians, and a much higher percentage of children, than the October 7 attacks[0]. Even if collective punishment was considered not cruel but moral by the larger community, Israel has far surpassed it.