This will likely end the same way Afghanistan did (either the US or Russia), not in military victory, but with the occupying force deciding the cost is too much, and going home.
If we're lucky, we'll get to see Russia collapse again, too. As long as Ukraine can hold out long enough for this to happen.