Except you have to use an ATM debit card in the machine. If you wanted anonymity or lack of traceability, I think you'd rather buy with cash, probably using an actual in-person transaction.
(I don't know if the US or other countries require registering identity of people buying gold in person in cash? I don't think the US does).
Any cash purchase (of anything, not gold in particular) over $10,000 requires submitting a form to the treasury. Not that that's easy to reliably enforce.
When you live in a dysfunctional country, gold is consider a useful investment.