to me, digital would win, based on "average" sound quality. It varies a lot less than vinyl. I don’t have money for expensive albums, so half of my collection is pretty poor quality. But about 10% of my LPs is way better than any CD, as it has been described many times: it has a soul, ambience, nostalgia, authenticity, it’s natural and has no digital characteristics (on my system, it’s brightness, unnatural highs, "scratchiness")
It also has to do with the type of music, soon after CDs surpassed vinyl, I think digital became preferred and both our ears and producing music adapted to digital. I have no vinyl from the 90s and most of my CDs are pretty flawless. (e.g. Dylan vs U2)

