The rancorous politics of the Israel-Hamas war have put immense pressure on leaders to issue statements on the conflict, even if such statements have little effect.