It only took off thanks to Bell Labs being forbidden to sell it, so it got offered for a symbolic price, alongside source code to major universities, which then decided to build on top, instead of paying OS street prices.
Had UNIX been sold in the same vein as other mainframe OSes and no one would be talking about whatever quality it might have had.
You can always get mindshare being first massively underpriced thing to market.
Or in another form, C should have done the same as other systems languages, do proper bounds checking, arrays and strings without implicit decay into pointers.
Second, having a proper UI story like NeXTSTEP or NeWS, and not the X11 Frankenstein.
Also, Unix is not X11, and weren't the other ones running on top of Unices as well?
"The language runtime is the OS." - https://news.ycombinator.com/item?id=15468395