> But on the flip side, you'll know exactly how much your colleagues make.
Can’t you also ask your co-worker if you care to know?
My thought is this also risks creating unnecessary resentment in the office. (Most people will react negatively finding out a colleague makes $10k more, even if that colleague has more years of experience - people don’t think about compensation rationally)