You have to connect your Spotify account with Shazam in the Shazam app option and disconnect Apple Music for that. Then the integration is on par.
Apple makes it really annoying to avoid their subscription services and use alternative apps. That’s the main point on which they are clearly inferior to Android.