Free markets are a component of capitalism just as they are a component of market socialism. China is a planned economy which stands in contrast to a market economy. But China has taken bits and pieces from many systems to create something that works for them, a hybrid that's probably specific to China alone. It's just capitalist enough to be able to interface with big wallets around the world, but we can all agree China itself is very far from being free market capitalism.
For a while the most used editor for Unixen wasn't vi or a vi descendant (vim), but Emacs, an editor alien to Unix. Knowing Vi was almost something 'mandatory' in order to manage servers' configuration under any Unix like OS, and ed on hard emergencies where even the terminal wasn't reliable enough.
Windows needs WSL2 and POSIX compat to be relevant today. Win32 itself doesn't run on top of a DOS like VM having almost a 95% of control of the machine, but on a VMS'like kernel with objects a la IBM.
MacOS itself it's just a Macintosh like UI made from NeXTStep scraps, a Mach kernel and pieces from a FreeBSD useland.