What the West gains is a diminished Russia less inclined to adventure. That’s a big gain.
The most important goal in this situation for the West is to avoid war with Russia. Since Russia has the resources to wage the war for a long time as long as the West doesn’t join it, then whether Ukraine wins is purely a Russian decision.