People will also ignore the color coding even if it existed. Counterfeiters would add the color to add legitimacy to their incompatible products. Color coding would not physically prevent you from plugging the cable in.
The people who feel gaslit over a USB-C cable not working would probably also feel gaslit over buying the "wrong USB C cable", because they bought a "USB C cable" and "USB C should just work, why do I have to remember which of 12 different connectors my computer uses, I thought the point of USB C was a unified connector".
They might feel deceived or mislead by the packaging, but they won't have to wonder if they are somehow using their computer wrong. Particularly for people who lack confidence with computers, this means a lot.
> How does it help when someone inevitably buys the USB-C cable with shape y when they need USB-C cable with shape x? [...] They still have to take it back to the store.
It helps because they know they have to go back to the store, and aren't left wondering if the problem is actually with themselves somehow using their computer wrong. As I mentioned earlier: "Some USB-C cables not working with some USB-C sockets leaves users feeling gaslit."