Disentangling QCD and new physics in D → πℓ+ℓ−