A belief without a rational foundation and knowledge is merely a prejudice.
There was another horrid situation that existed in Gaza before October 7th, and that was the incarceration and repression of a population of 2.3 million people in a small strip of land where the air, land and sea is controlled by a hostile power which also controls the food, water, fuel, power, medical supplies at a subsistence level. Where there is no opportunity to develop an economy, which has an unemployment rate of 40% with the available jobs paying barely enough survive on. There are people in Gaza who have never known what it is like to eat a full meal.
On top of all this the separation wall is an automated killing machine with remote cameras, sensors and guns. Where cameras and automated point directly a people's houses and roofs of houses waiting to detect movement before immediately opening fire.
On top of this again, the IDF regularly bombs the Strip in what they call "mowing the lawn", designed to degrade infrastructure and any development the residents of this concentration camp may have managed to build up since the last time the lawn was mowed.
No one can live under the conditions Israel imposes on the Palestinians in Gaza and the West Bank.
The only surprising thing about this is that it took as long as it did for the Palestinians to rise up and fight back in anyway they could.
This conflict did not start on October 7th.
You really need to look a bit deeper at the occupation. There are hundreds of videos on YouTube, made by reputable journalists and news organisations that you need to look at and then come back hand on heart and tell us if you would be willing to live under those conditions without wanting to fight for your family, your house, your land and your people.