Yes, committing war crimes and disregarding thousands of civilian deaths isn't really an acceptable byproduct.
There is also the small problem that "destroying" militants is a simplistic concept that may sound good to some people, but such actions only serve to create more militants in place of those who have been "destroyed"!
I don't think anyone is suggesting that the civilian deaths on both sides should be disregarded.
It is clear that there can be no lasting peace in the region without a second state solution, and also not until Iran's malign influence via it's proxies, Hamas, Hezbollah etc are neutered. The telling factor for me is the attitude of the neighbouring Arab states.
Egypt will not allow Gazans to cross in any numbers because it fears numbers of Hamas terrorists will migrate into Egypt which will destabilize that country.
Jordan helped the US and it's allies to prevent the Iranian backed drone and missile strike from causing significant damage in Israel.
Both these positions suggest they believe that the Iran backed terrorist organizations are a significant problem.
That is not to say I back the way Israel has gone about seeking to neuter Hamas, far from it. However I believe that Hamas has to be neutered before there can be a lasting solution in the region.