At the time of vinyl, the RIAA had standards on how to process the sound. Those were good standards. On the move to digital we threw them away, and nowadays some companies go into the cheapest route, some go into the best benchmarks route, and nearly no company tries to release a system that sounds good anymore.
But vinyl systems still have to follow the RIAA standards, otherwise they'll get completely distorted.
For others, here's a link: https://en.wikipedia.org/wiki/RIAA_equalization
Looks like they used to develop all kinds of tech for sound record and playback.
Since you simply cannot do this on analog storage, vinyl will not have these compromises and will usually sound better.
But compared to good lossless digital storage that makes the opposite sacrifice (ie: Take up more space to retain more quality) vinyl will almost always produce a less accurate reproduction due to the physical properties (degradation) of the record itself.
Though many people seem to find these analog losses appealing or 'warmer' and actually prefer it to a more accurate reproduction of the original master.
Uncompressed digital audio is going to sound equal to or (more likely) better, and it doesn’t have the degradation problem.