Hamas got the war they wanted, just not the outcome. Haaretz seems to have the same problem. Commanders in the field have an obligation to their troops protection, first and foremeost. Hamas obligation is to kill as many Jews as possible, civilians are the usual target. The fact that Gaza civilians died which is regretable would not have happened if not for the matter of 8,000 rockets that were aimed at and killed Israeli civilians.
Peru forces rescue 54 adults and children held captive by Shining Path (AP)
from the article: What led to IDF bombing house full of civilians during Gaza war?