Israel tries to avoid casualties when they can. For example when Hamas launches rockets at Israeli civilian targets, they shoot the rockets down with the Iron Dome and shrug it off. In my view Israel would be perfectly within their rights to return rocket for rocket into Palestinian civilian targets. That the Israeli rockets would have far more devastating effect as they'd produced by a nation state with a proper MIC, not what terrorists or smugglers can jury-rig, and the defenders don't have their own Iron Dome, Palestine would by far get the worst of the exchange, is something Hamas should be thinking of before they go around launching rockets at other people's civilian territory.
That Israel doesn't return rocket for rocket in this way tells me Israel is fighting with a significantly higher amount of restraint and morality than their opponent, and I'm confused as to how many otherwise intelligent people seem to feel otherwise.
I feel sorry for the civilians caught in the middle, but in my view, almost all the moral responsibility for the bad stuff happening to Palestine falls on Hamas. Hamas is always going around deliberately committing atrocities, Israel is often trying to show restraint while still maintaining reasonable military effectiveness against an enemy who likes using human shields.