I fear that Ukraine could end up being bombed back into the stone age loosing their power plants and so forth. Maybe they should be willing to, at least temporarily, give up some of the regions that Russia is occupying, including Crimea.
If the Russians would be willing to have a ceasefire and start negotiating possibly, thinking that they could keep some territory and Crimea it could be one step in the process.
I still side with Ukraine, but there is also the concept of winning the peace, rather than just winning the war. If peace, or at least temporary peace could return, there are other spheres of competition between societies; such as economic competition.
Which country does better at innovation? Most likely a country that embraces more human rights and freedoms. Most likely Ukraine.
In the long run, where would the brightest and most innovative people want to live? More likely Ukraine.
In the long run, possibly those lands would be returned to Ukraine, or at least returned to more open society. Even Russia, itself, could, someday, attempt reform as happened after the fall of the Soviet Union. Maybe Putin can be overthrown.
If human rights and minority rights were respected, it really shouldn't matter which side of a national border one resides on. In the long run, the whole idea of nation states could become obsolete.
The European Union is an example of this, though it is currently facing nationalistic headwinds.
It is a big "if" whether the Russians would agree to a cease fire, so this could be a mote point, but I think it's worth considering before Ukraine becomes so damaged by warfare that it becomes unable to function.