I try very hard to find credible primary and secondary sources of what's true on the ground. For Gaza, but also for Ukraine, Myanmar, Sudan, I am basically a nerd about conflict zones. From all of my research, I believe the IDF gets a bad rap but is no worse in Gaza than any Western army would be in the same situation. And indeed we can see that in dug in cities like the coalition forces vs ISIS in Mosul, civilian casulaties happened at quite similar rates to Gaza.
The United States occupation of Iraq was like a trip to an amusement park compared to Gaza. Please don't compare the IDF to the US military. At least the US military and its soldiers had RoE that they respected. Any breaking of those rules did not get ignored like they do in the IDF.