People forget Israel is the one with the power and creating this issue. If Israel actually backs off and treats Palestine as at least human, then I think (and hope) most people will see that Hamas needs to be destroyed as they are a terrorist group.
Isn’t that exactly what Israel did when they left the Gaza strip in 2005? That’s the thing that lead to Hamas taking over in the first place.
They did that, and terror attacks stopped. This basically marked the end of the second Intifada. Then they blockaded Gaza, and the terror attacks came back. Then there was a ceasefire in 2012, with one of the conditions the lifting of the blockade. That didn’t happen, so the terror attacks came back, and we got the 2014 war. See the pattern here?