Quite a bit of value in crushing a group that launched a major attack killing raping and hostage taking and whose stated goal is your extermination.Only if the military value obtained here exceeds the loss of civilian life. So yes both can be true as I mentioned in my post.
This is why the truth is likely in the middle in this war.
But consider this when Hamas attacked on Oct 7, there was utterly no military value and yet they did it at the cost of many lives of their enemy and even their own people.
Any nation must respond to such an attack, Hamas must be hunted down to pay for it. If they choose to hide behind civilians, that's on them... civilians BTW who seem to mostly support Hamas, their methods and their cause.
Sometimes there is a middle truth, like in WWI, but sometimes one side is just being a total jerk and needs to be ended, WWII Japan, German, the Viet invasion of Pol Pot's Cambodia for example.
Hamas wants dead civilians, Israel is going above and beyond to do the mission, a mission that must be done trying to avoid the loss of civilian life as much as possible.
It is the use of human shields that leads to an excess loss of civilian life. However what other option is there. It's like those Neville Chamberlains who call on Ukraine to lay down and take it like a bitch because war bad mmmkay.