This is a very personal matter.
Personally, in 95% of games I turn off the music and turn on my tracks in a separate player. Perhaps this affects the immersion, but I like my own tracklist more than what the game creators offer.
Also, the same repeating melody can create a more negative impression than no music at all (hello, Stellar Blade).
Therefore, for me, music in games is more unnecessary than necessary.