I have some early released CDs (1980s) that sound absolutely horrible and very fatiguing whereas my vinyl counterparts sound better. Some of those CDs were re-released and remastered, with some of them HDCD. (I have HDCD players). They sound significantly better.
I can say the same for my vinyl records. Some sound lousy compared to CDs. Some remastered vinyl sounds better then CDs. I feel it's a toss up in some cases and depends on the sound engineer, remixed remaster in both formats. Overall, I think a well mixed, well engineered, CD sound better than vinyl. Vinyl is more fun to me.