A harsh principle of the law of armed conflict is that even when one side of a conflict violates and disdains the law, the other is still bound to uphold it.
Anyone who has heard the testimony of the survivors of the Hamas' massacre of October 7 or seen the gruesome body camera recordings of murder, torture and mutilation filmed by the exhilarated terrorists themselves, will be hard pressed to think of a war crime or crime against humanity that Hamas did not commit.