I play both formats and they are very close sound wise
I will say though that I find more cds with loud brick walled mastering or very harsh loud dynamics and don’t find nearly any records with those characteristics
My point is that vinyl seems to be more consistent when it comes to listenable
recordings. The cd era mastering was all over the map and vinyl mastering has been around much longer
Just my take