Digital music files stored locally are easier to use than CD. Streamed files (from Qobuz, Spotify, etc) are even easier to use, but may not sound as good as local digital files.
The only advantage that CDs have is potentially better sound quality than locally stored digital files.