The US is #1 when similar cultural backgrounds are compared.
But that is not how international scores are tabulated - it is the whole population as 1 score.
So, no I don't see a contradiction. If the US is #1 in educating every cultural group isn't that a good argument for saying the US is #1. But it is also fair to say that we have never scored well on international tests.