There's a tendency for video game thought with things like this. The conflict doesn't have to end in a military confrontation where the blue units kill all the red ones. Vietnam didn't really directly beat America in the field, they won by being tenacious and sticking it out beyond the occupation's patience.
The entity has to exterminate its opposition to 'win'. Palestinians just have to resist until they give up. It's kinda trite and there is a real risk that things get very bad, I won't deny that, but only one side needs a total victory here. Any occupier who throws in the towel and goes back home, anyone who decides not to come because of the risk, any negotiation, these are all victories for a resistance movement.
And things unravel in ways we don't anticipate. Things look impossible until they don't.