Apple Music is terrible for that. They often replace a single album track with a live version. I guess trillions of dollars isn't enough to make a half decent service.
I haven't looked in a few years, but Apple Music was just a re-brand of Beats Music, which was itself an enshitified rebadge of the old MOG music service.