Political solution would have costs to Israel. So does war/oppression/occupation.
Political solution did not just fell through, it was actively rejected by Israel time and time again. Israel basically invited the attack. In no world can you expect violently oppressed people to never eventually violently fight back. Israel's government just thought that it would always be able to control this with force, with just a victim here or there. It was mistaken.
I still prefer Israel to go back to political solution, and away from "annihilation" solution.
That said the evil, greed, and/or anger of our leaders ensures wars will always be around. But I don't have to participate in them. In the face of an equal force, I'm happy to stand my ground. In the face of an overwhelming force, I am not too proud to flee.