^^^ this.
Starting a war and losing it should have consequences.
They tried to genocide the Jews in 1948 and lost.
If there are no consequences for what they did - they'll just keep doing it until they'll be successful. Which, coincidentally, is exactly what Hamas said about Oct 7 - that they'll repeat it again and again.