All nations have the same policy about avoiding civilian casualties in war
Israel is pilloried each time non-combatants die inadvertently when measures are taken to defend its citizens. The world does not seem to care that the enemy Israel is fighting uses its own people as human shields, which makes it impossible to attack the terrorists targeting Israeli civilians without the possibility of injuring the innocent. The world also does not give Israel credit for taking unprecedented wartime steps to warn civilians. Meanwhile, the same countries that condemn Israel hypocritically use whatever measures are necessary to kill their enemies and rarely apologize for the collateral damage they cause.
Little regard was given for civilian casualties during World War II when Dresden was fire bombed or nuclear weapons were dropped on Japan. In fact, the strategy was, in part, to kill so many civilians that the Axis powers would capitulate. Imagine if Israel adopted a similar approach and deliberately carpet bombed Palestinian cities and caused tens of thousands of casualties. Such a policy might also cause the Palestinians to give up their terror campaigns and to oust the leaders who brought the rain of fire upon them. Israel, however, does not fight this way; the moral code of the IDF, which reflects that of Israeli society, does not allow for such a policy.