Israel's stated goal of completely eradicating Hamas necessitates committing war crimes as there are an estimated 25-30k Hamas fighters deeply entrenched within a civilian population of over 2 million. Proportionality and the protection of civilians are impossible when the objective is to eliminate every one.
It's a classic example of a mismatch between political goals and military capability.