An option?
Our last two rounds of BMWs did not have them, and that goes back about 8 years or so.
Okay, so digging through the paperwork on the cars I've had this year...(it's been a while since I mentioned it, so by way of explanation, I've been an automotive journalist for 24 years and currently write for Forbes Wheels, The Los Altos Town Crier and my own website, MikeHagertyCars.com)
None of the Acuras I drove ('21 NSX, '21 TLX, '22 RDX) had CD players.
The 2021 BMW 3-Series has "CD player prep" as standard equipment. Means the wiring is all there, and they'll sell you the player as an extra-cost option. The one I drove ( 330e) didn't have the option. And none of the other BMWs I drove ( 2021 430i Convertible, M3, M440i, X5, or 2022 X4 M Competition) even had prep.
It looks like BMW is close to having phased out CD players, but they're not there yet.
The 2021 Lexus IS 350 F SPORT, LS 500h, NX 300 F SPORT, RC F, RX 350, and UX 200 and the 2022 RX 450h---in other words, every Lexus I drove this year---has a CD player as standard equipment.
The 2021 Toyota Land Cruiser does, but it's the last year for that model. No other Toyota does.
The 2021 Subaru Forester Sport, the 2022 Subaru Forester Wilderness Edition and the '22 Outlander Wilderness Edition all have standard CD players. Subaru re-designed the interior on the '22 Outlander, with a large vertical screen that eats the area where the CD player used to be, but instead of walking away from CD, they hid a player in the center console box.
So, realistically, Lexus and Subaru are the only ones where you get a CD player with the car. Lexus' redesigned big SUV, the LX (based on the Land Cruiser the rest of the world gets) won't have one, which means Lexus is ready to move on as it updates its lineup. Subaru passed on the opportunity to do that with the Outback, so Subie could be the last CD on the market.
Interestingly (to me, anyway), I ran across some research that indicates that younger (under 40) buyers get into a vehicle with a CD player and wonder what the hell it's doing there ("What is this, the 90s? Am I my dad?"). So manufacturers had incentive to replace them beyond the cost of the units themselves.
Lexus' buyer base is older and more traditional and Subaru's is younger but loyal to a brand that almost never does shiny new tech. So it's logical that they're still offering CD players as standard.