But Hamas committed acts of terror and war crimes of their own volition. Blaming Israel is stupid and is literally the main reason this cycle of hatred and mass civilian violence continues to perpetuate. Israel needs to cease their genocide but Hamas does not care about Palestine at all and will continue to bait more suffering their way from Israel.
It's all in history. Terror can't be justified. Israel has suffered that is true. But so have the Palestinian civilians. Israel has their blood on its hands too, after all Israel is responsible for the Nakba. But the main problems is both sides don't want diplomacy and peace, Israel's right wing morons are advocating their violence against Palestinian civilians, Hamas is playing its terror games. Caught up in the middle of all these morons are civilians on either side, who don't have any quarrel with the other. They all want peace. But offcourse games of politicians don't have any consequences for the politicians but the common man and woman pay the price.
Though it's true that the attack would have never happened if Palestinians weren't crushed and their voices not silenced. If there were peace, the chances of such attacks are zero. There needs to a be a cause for such a big attack that is what is important: the cause, why did it happen.
It's easy to say from the sidelines that through diplomacy peace will prevail, but who's definition of peace? Are the Palestinians going to get any of their land back? What about the natives of the Americas or Australia? You can't negotiate with colonionalism. You will never even have a seat that the table. The unfortunate truth is that one man's terrorist is another man's freedom fighter. And one party is completely to blame for stacking the deck that way. These two things are not the same.
Those are all very complicated questions. The Israelis being closer to the afore mentioned American and Australian natives than their European settlers, having historical roots in the Levant since well into the BC's being one of them. Further complicated by the fact that Palestine lost that land after going to war to reject the two state system, multiple times. The only acceptable option according to Palestinian governments (leaving intentions of the civilians out of it for the obvious reasons that their individual preferences can't be known) up until recently was the complete destruction of Israel, and no country is going to just roll over and cease to exist because their neighbors want them to.
This is not to justify a might makes right viewpoint, or to give a pass for war crimes on either side. The years of heavy handed treatment definitely exacerbates this. I honestly don't know of any country that would handle the situation better in the same circumstances, so it's hard to find a good path forward. The closest situation I can think of is Britain and Ireland, and I don't think there would be a Repulic of Ireland if their only stated objective had the complete annihilation of the British from the isles instead of just independence of the island.