You sell into the market and buy a replacement asset. Easy peasy. No need to sell all at once, you simply change your strategy to invest new capital elsewhere and slowly roll off existing debt ownership.
Over time, the US will need to find someone willing to buy new US debt as existing buyers and holders invest elsewhere.
There's literally not enough gold in the world to make a difference at those scales. And while gold can serve as a (relatively) safe store of value, ultimately investors need to earn returns and holding gold has negative cash flow.