Swings in the US dollar have no long-term impact in the price of gold. Nor is gold an inflation hedge.
Three Points
While gold generally moves opposite the dollar in day-to-day fluctuations, long term impacts are nonexistent.
Here is the chart with the index of gold and the dollar set to the same base year, 1997.
Gold vs Trade-Weighted Dollar Index
Gold vs the CPI
Gold fell from $850 to $250 from 1980 to 2000 with inflation every step of the way.
What happened?
Measure of Faith in Central Banks
In addition to being money for thousands of years, the price of gold is primarily a measure of faith in central banks.
If you believe central banks have everything under control, don't buy gold.
If you believe monetary madness, negative interest rates, and negative rate mortgages prove central banks do not have things under control, then you know what to do.