Fuck, I really hate to agree with Elon on anything, but that is a ridiculous argument. LeCun must also really believe that trees only fall in the woods when someone is around to see it happen.
Yeah, they're both pretty wildly off base. Publishing papers that are vetted and used as a foundation for other work is science. Also, sorry, but developing advancements behind closed doors is still science. Oppenheimer's secret research for the government is pretty fucking foundational. Thomas Edison wasn't interested in sharing his ideas, but rather in selling them. Everyone remembers him.
This argument reads like two people having an ego trip past each other.
Also how transparently published and reproduced was Pfizer's vaccine trials, considering a judge had to force the contents released, yet it was science right away. You can't have cake and eat too.