As for what Ukraine would win: hypothetically: they could cause Germany to stop relying on Russian gas a bit quicker. But there are other parties that stood a lot more to gain from this and 'qui bono' is an even better question, especially in the context of a false flag. The fact that the trail that was uncovered was a mile wide is in itself quite suspicious.
I'm dubious that the risk to European support is worth it for Ukraine; they're hardly the only ones with means, motive, and opportunity.
There are so many little factoids about this thing that it is very hard to make sense of it, for instance this little tidbit:
https://www.theguardian.com/world/2023/apr/28/russian-navy-v...
Barring some country coming out and admitting it, we may never know for certain.
Anonymity, 'people familiar with his role', that bit is repeated over and over.
I'll reserve my skepticism until there is hard proof and even then: if it turns out that this was a rogue action how much weight should be attached to it? Does that rule out some invisible paymaster?
Ukraine top government officials have denied involvement and knowledge of involvement and that's where it stands for now.