I share your concern about civilian casualties, but still maintain: you are comparing very different circumstances. Isolated Israeli special forces operations where access to the target was possible have also had low civilian casualties (see for example the assassination of Yahya Ayyash, when only he himself was killed).
If you want to compare Gaza with American examples, better examples would be Mosul or Raqqa, or Fallujah. In all of those examples, there was an entrenched combatant population that was deliberately embedded in and fought among civilian populations. There was incredibly great destruction in all of those cities, including over 80% of the buildings becoming uninhabitable in Raqqa. While levels of physical destruction were comparable, the civilian death toll was far higher in Gaza. Part of that was because civilians could not leave urban areas in Gaza as they could in other areas of warfare (for example, few civilians actually remained in Fallujah). Part of that was because the war in Gaza lasted much longer than any of the above so there was far more cumulative exposure. Part of it was to do with the sheer extent of Hamas's underground infrastructure compared to (for example) ISIS infrastructure. And part of it was through Israel's tactical choices and greater acceptance of (Gazan) civilian harm, as is currently being debated.
The point of the above is not to excuse very problematic approaches in Israel, including among senior politicians, to Gazan civilian lives, as borne out in the immense casualty numbers. Holding countries to account for what they do in war is the job of organisations like the ICC. My point is rather that even as non-experts, it's only fair to compare like for like and look at what urban warfare really looks like. An elite special forces raid on a single individual will always look different from urban warfare against many thousands of enemy embedded among hundreds of thousands of civilians.
And to the person asking "Is there any way you think Israel could have defeated Hamas without the horrendous casualty rate?". Israel hasn't defeated Hamas. I believe that the casualty rate could and should have been lower. But I also don't take lightly the actual threat and seriousness of Sinwar, Iran, Hezbollah etc. The failing of Netanyahu's government in the years preceding the war, depressingly, was exactly that: they thought that this could be solved with money and concessions and that Sinwar was not serious about armed conflict.