I have a high end CD player and a high end streamer. The sound quality of a red book CD is the same locally stored, from disk or from streaming. For high resolution albums, streaming sounds better. Qobuz has over half a million high resolution albums.
In general a in the fifteen to twenty K range they can be the same. But like everything in audio, you must make carful choices in equipment that is both compatible with your taste, is best in class and is compatible with the rest of your equipment. .
You can see my system under my UserID, my CD sound quality = streaming = vinyl. With the same material they sound the same. This is by design, I wanted a specific sound, so my CD player, DAC, Phonostage, and preamp are the same (Audio Research Reference level)… and I chose a phono cartridge and streamer to achieve the same sound.