In my experience with both (currently subscribed to both) Spotify is quicker to extrapolate from less information, and Apple is more patient and observes longer-term patterns. They both eventually get to my tastes, but I can more-rapidly alter the primary genres of my Daily Playlists on Spotify than I can of the various weekly playlists on Apple Music.
I like each for its own reasons, though if I had to choose one forever, I’d probably pick Apple, but it wouldn’t be by a landslide. :)