Every genocide, every occupation and every conflict has its own historical conflict. You need to examine you own massive biases here, adjust your view to international law and human rights and you'd see the massive injustice here that is fueling the conflict and will continue to until its addressed.
Israel is not securing its own safe future here, there is no military solution here. Hamas will rebuild itself if it hasn't already because the crime they have committed and the people they have murdered will only boost the recruitment of Hamas and other paramilitary groups. This has always been the way the world over. Jewish history is itself has examples of this.
And I've never see a good faith attempt from Israel wrt this conflict that hasn't been completely derailed by the Israeli extremists and hardliners.
There's more but basically there are enough differences that the situations can be treated differently. But at the same time, I do hope for a different, peaceful solution. Surveys show Islamic Arabs are generally quite happy under Israel, but that won't work for those in West Bank or Gaza perhaps. You are right that teenagers who aren't supportive of terrorism don't deserve violence. A two state solution still seems like the best idea, but Hamas has still not shown support for it, even though it would mean peaceful coexistence and could lead to a rebuilding of Gaza and West Bank.