Incoming call doesn't stop the music in Nexus 5X
Happened to me too, but only when Ring Volume is zero (When you put it in vibrate)

I searched for solutions but dint find any, so I have a workaround for this.

Never set your Ring volume to zero, keep it at minimum not zero. Now it'll ring when you get a call stopping your music.