I see comments like this posted fairly often, but I'm not sure I agree. Have you seen the prices of digital cameras lately? Just one example that comes to mind, the Ricoh GRIII came out in, I believe, 2018 at a price of $900, and the new GRIV came out last year at a price of $1,500. That's a 67% price increase in seven years.
With the passing of the DSLR and the move to mirrorless it's hard to even find a new enthusiast level digital camera for less than $1,000. . Another example, [not checking prices so don't hold me to exact figures] the entry level Nikon DSLRs (D40 series and onward) used to go for around $600 or so with the kit lens. The Z50II is about $1,100 with the kit lens, which is about 80% more than the entry level DSLRs. (I know I should be taking inflation into account; again, don't hold me to exact figures.) I don't think even slide film has increase that much over the same time period.
Of course, sales of digital cameras are only a small fraction of what they were at their peak about 10–15 years ago.
My point is that I don't think we're seeing an exodus away from film and towards digital. I think what we're seeing is an exodus away from photography, or at least from dedicated cameras. I think everyone is feeling the pinch of inflation, stagnant wages, and rising cost of living. And since it seems a smartphone is required for day-to-day life in the 2020s, most people are just using their phones as cameras.