Use keyboard media buttons for Spotify, not YouTube [duplicate]

This is a new feature of Chrome73, called Hardware Media Key Handling in chrome.
Enter this URL in the address bar then you can simply disable it.
chrome://flags/#hardware-media-key-handling