Not sure exactly what you're getting at, i.e. implying that Ukraine will eventually have to agree to give up some territory, or something else, but you reminded me of a good Twitter thread I read recently that talked about what negotiations between Russia and Ukraine would look like, and how good or bad a deal that Ukraine could be forced to accept might be.
I recommend clicking through to read the entire thread, because it covers a lot, but the gist of it is that Ukraine negotiating or accepting some kind of deal doesn't have to mean giving up territory to Russia. Indeed, Ukraine has far more than just territory to use as leverage in any negotiation with Russia, but the preconditions for those negotiations mean inflicting as great a defeat on the Russian military as possible.