The only reason to purchase a CD nowadays I think is memorabilia, or to support an artist/group… aside from that it’s pretty much as you say, physical media is a dying format.
Vinyl is an outlier, but even then modern vinyl players are noticeably worse than ones manufactured several decades ago