Are there pin differences on the audio jack between a 2015 and a 2017 MacBook Pro?
Answering instead of deleting question: 

I took this to the company help desk and they determined that my macbook 2017 probably has a defective ground on the headphone jack.