So true. I actually had to have a very candid conversation with my business partner and explain to him that my time is more valuable than his based on how and where I contribute and market value, I can't put in time in direct proportion to the time he puts in.
It was a tough thing to discuss but he understood and it was a very good conversation to have so we could move forward with a better understanding. This wasn't a salary conversation but a value conversation which forced him to really think of both of us and the company.
There are also intangibles that people overlook. If someone is more pleasant to collaborate with and adds more value culturally, that could be why they are paid more. Most companies aren't running an assembly line where doing the same job may be more likely.
When salary "discrepancies" are found out, employees won't learn a lesson and take ownership for their situation. They'll spend time investing in their skill-set but they won't spend a little time here and there to do market research or go interview a few times each year or every other year. There's also specialists who can tell you what market rate is for your position if you need help. If you don't accept this as part of the workforce, be prepared to be earn less. That's on you.
Then our experiences differ (which is sad but okay) - I have seen, multiple times, the situation that not only the person who uttered it thought it was true but the better paid peers agreed (and yes, they agreed in private, not only in public where they had to fear to be judged if they said "well no, he is not as good as he thinks").
I'd rather say that the main discomfort coming from salary discussions is not caused by money, but about having some people acknowledge that they're not as "good" or valuable (in that setting) as they'd like to think. Social status and "saving face" is very important, and open salaries essentially force some people to be publicly downranked - either by having salaries reflecting their worth (showing some people as not equal to others) or by having mostly salaries (downplaying people who do deserve more).
Often, ignorance actually is bliss; as the lower paid people can keep believing that they're equally valued - opening the salaries can't make them equally valued, they're still be low-paid, but now they'll be angry about it.