The whole point of PC is digital data though.
The original DOOM was shareware, you were allowed to copy and share it with your friends or online however you wanted because it promoted and popularized the game.
CDs on PC were always just a retail medium. Unlike classic consoles, there are very few PC games that run right off the disk. It was usually an installer.
I know people complain about Steam all the time with "you don't actually own your games" but you do own your PC and the filesystem which means you can copy that data and do whatever you want with it. No EULA on earth is going to stop you.
Of course if it ships with DRM or relies on steam to launch, then yeah that's lock in, but that's where GOG and pirate repacks fill the space.
It was inevitable for consoles to go full digital because 90% of sales are digital and it gets the inherent convenience of digital media, but consoles don't let you access the filesystem and do whatever you want. It's a locked down system with a metric ton of security to prevent you from ever copying the game data.
Retail will also always reduce profit, especially for smaller developers who need to rely on a publisher to sell on their behalf.
Steam and GOG take a 30% cut, so it's probably better to promote itch.io or some other platform if that's a concern.

