Ukraine can repair her electrical grid to some degree if not 100%. Russia is not replacing stocks of cruise missiles due to lack of foreign parts. The T-62s are coming out of storage. They are not going to get fire control systems for the same reason.
Ukraine can win by Russia militarily and economically burning out.
Or by Russians wishing up and getting rid of Putin