@yoyoyaya is correct that CDs technically have a higher dynamic range than vinyl—however mastering on CD tends to be extremely compressed, whereas good vinyl mastering engineers make their records dynamic, often more so than their CD counterparts. IMO it is all about the mastering. You can have a record mastered from digital that sounds terrible or stunning depending on how it was mastered. Same for AAA.