IMO Spotify is also way better for discovering new music to listen to. Apple Music's recommendations are bland and uninspired in comparison.
Spotify also does way better on social features (like sharable summaries at the end of the year of what you've listened to, integration with other apps, etc). Of course that's something that a lot of people don't necessarily care about.
I moved from Spotify to Apple music because Spotify had janky network issues under certain conditions, and network issues would sometimes hang the UI. Now that I'm spending a lot more time at home, im considering making the move back to Spotify, since Apple Music has its own share of irritating bugs