Talk about the agony of defeat!

Ralph Lauren — which got tripped up last week on reports that it was making uniforms for this year’s US Olympic team in China — said in a face-saving gesture Friday that it will produce Made-in-the-USA uniforms for the winter games in 2014.

But sources said Ralph Lauren and the US Olympic Committee, which had signed off on the Chinese-made goods, have been beaten to the punch by a rather embarrassing competitor — Russia’s Olympic team.

Since 2011, the Russian Olympic team has been in talks with Los Angeles-based American Apparel for a deal to design its clothing for the 2014 games, sources confirmed.

“[Russian Olympic team representatives] said they didn’t want anything that was made in China,” American Apparel CEO Dov Charney told The Post. “It’s not just for the uniforms — it’s also the merchandise.”

Meanwhile, Charney — whose hipster clothing chain is the largest US-based apparel manufacturer — says the US Olympic Committee has never approached his company about a potential deal for clothing or merchandise for Team USA.

Click for more from New York Post.