I always do this (and have always done), but then again, I don’t take out loans of any kind; I rather have no car. I play dumb until we have a price and then pay cash; some want to renegotiate at that point, and so I walk away; there are enough dealers.
This might work for used cars, but probably won't for new cars. Dealers frequently lose money on the sale price of new vehicles, but make up for it on finance/insurance and profit from selling any trade-ins.
Certified pre-owned vehicles will often have a better warranty than a new car anyway and you don’t lose half the value driving it off the lot. Win-win.