(most consumer) CD's have sampling imposed limits 44.2KHz. HARD cutoff ~20K/ch
Vinyl
roll off . CD4 (Discrete Quad) used a sub-carrier (system (similar to that of FM Stereo) for the rear channels. Vinyl could handle much higher frequencies.
If you can hear above 18KHz, you will miss the overtones on CD's (usually Classical orchestras. Think Triangle chimes)
CD's excel in low noise, NO 'print through' (adjacent track deformation) and 1 Hour playing time per side
Note: I own (media and playback equipment)
Open Reel Tape: Quad and Stereo
CD4, SQ , QS Quad Vinyl
Loads of Stereo and Mono

Vinyl (33-1/2, 45 I think there is even a 78 in there somewhere)
Laser Discs