You pay the country you live in first, or else the US Embassy in Stockholm, various international tax accountant/lawyers and every double taxation treaty I've seen is wrong.
Trust me, I don't misremember - it made me mad as hell.
Your expert disagrees with what mine told me, and it seems to disagree with the IRS as well. I'd suggest you obtain a second opinion if this situation is relevant to your life.