You're both missing the very important compromise of patents.
The temporary monopoly patents give were and are understood to be harmful. But, they're less harmful than a world of trade secrets. Which is what we had, before patents. See: guilds.
So, we the public offer intellectual property. And, in return, the details of that property become public from the very beginning. And, after a few years, everyone has freedom and the instructions on how to make or do whatever.