It’s the anticompetitive actions causing the deadweight loss, not the digital nature of transactions.
There is a lot of psychological awareness created when you have to pull a couple singles vs. a Benjamin out of your wallet vs tap card for all amounts.