I have a BMG record club LP of Pat Metheny's Still Life (Talking) from 1987 and the CD version. The digital record, mastered by the great Bob Ludwig, has sounded better in some respects when I've compared it to the CD. It's been a while since I did the comparison, but IIRC the bass ostinato on "Last Train Home" was more articulate on the LP than the CD, which surprised me. I'll be getting a new cartridge soon, and I'm using a different DAC now, so I may repeat the comparison.
With analog-recorded albums, I have some where the CD sounds better and some where the LP sounds better. It probably does come down to the mastering of each, as others above had said. I think Todd Rundgren's A Wizard, A True Star was one which sounded a little better on CD, not surprising given how each LP side is about 30' long. Granted, that is a rather poor-sounding recording to begin with, but I love the music anyway.