It's less "both sides" and more "two of the four sides." There is Hamas, the weak but fanatical terrorist organization, the powerful and cruel ruling Israeli administration and military, the Palestinian citizens struggling to survive, and the Israeli citizens. The latter two are mostly not committing crimes against humanity¹. By the laws of war Israel signed into, civilians should be protected. Civilians are not parties in a war
1: The violent Israeli settlers, if certain accounts are true, are committing crimes against humanity. But you can't punish every Israeli just because they share nationality with a criminal. Just like we shouldn't starve Palestinians who live in the same area as Hamas.