There is a retired SEAL, Jocko (John Willink), who was saying on his podcast that if he was Israel he would have made this campaign more about ridding the Palestinians of Hamas than about vengence. And I can't remember all the details he talked about, but setting up humanitarian safe zones where the Israelis would give the civilians food and water, and invite them there instead of just saying "go south." Instead of reporting on their military victories, they should be reporting on their humanitarian initiatives.
He's of course no expert on anything just because he is a retired SEAL, but he did a lot of counter insurgency in Iraq.
But that's an interesting take. If they really wanted the world to believe they were doing this for their own defense, and for the sake of liberating the Palestinians from Hamas, they would do more to help the civilians. I'm sure with all the anger in Israel over the attacks that would be hard.
ETA: Actually, thinking about it more, China benefits from having an unstable ME, as currently there are 2 carrier strike groups tied up there, and potentially a MEU. It pulls resources away from protecting Taiwan. So would indeed show a lot of world good will if they step in.