Also, I believe that there's some setup so that the credit is one-way, or you have to pay the larger of the two. In any case, it usually ends up being that you pay no less in taxes to the US, and then you may get taxed for the foreign country on top of that.