Israel can just back out after a bit and things, for them atleast will return to somewhat normal. But for Gazans, what will they be returning to? The resistance can declare victory but the destruction that occurred is mostly in Palestine and I doubt they will be able return to their former state (of development) for atleast 10 years. In those ten years, IDF will routine destroy more of Palestine.Gaza can fight like this indefinitely. Israel economy cannot sustain like this forever. Not unless they plan to live like Gaza. At that point they may as well immigrate.
Give it another couple month and the sign on economy will show. Negotiation will start unless US escalate their backing.
Outcome would've been different if the fighting was occurring in Israel. Can Gazans revive 60,000+ damaged/destroyed buildings, pretty much all of their infrastructure and return to normal life while we know from history that Israel will destroy more routinely?
Israel's aim is pretty straightforward: make Gaza inhospitable so Gazans move out of their own volition. Yes, resistance can fight indefinitely, but the larger society itself cannot function like this indefinitely. That, in the long-term, can weaken the resistance itself.