While I hate elon, this is a bad take. Ukraine and russia boarder each other. Most of the fighting has been over land. What good is a navy in such a battle? The most I could think of is shelling but AFAIK russia has been doing it's shelling with traditional artillery. Further, Russia's navy is a hot garbage mess. They only have 1 aircraft carrier and it's been scuttled for pretty much the entire war (and has constantly caught on fire while being scuttled).
The only wars that are hard to fight without a navy are wars where a significant portion of the warring nation and front-lines are near the water. That's not this war.
Not to say there aren't advantages to Ukraine sinking the russian navy. But rather, it's unlikely that "the war would have ended tomorrow if they did".