Ukraine never had a chance to decisively beat Russia on the battlefield. You son't seem to realise the whole idea, the purpose of the big military buildup in Ukraine that started in 2004.
There are two reasons for this war: (1) to "weaken Russia" as SecDef Lloyd Austin admitted last April, and (2) to effect regime change in Russia (a "Moscow Maidan") - as evinced by the US reaction to what we all witnessed last week.
Ukraine wining outright was never in the cards. It was always about fighting Russia "to the last Ukrainian".