YMMV
My last two car purchases from dealers were great, they did everything to make the process transparent. The one before that was like the 7th circle of hell, they did everything possible to rip us off until we left. The worst thing was it was a very rare car, we were not going to find another and they knew it. Even so, they went too far and we walked.
* Shout out to Volvo, I did the whole thing over the phone. The salesman did a face-time in the car, took our word for it we would buy it, defended it against other salesmen with customers on site trying to buy it, drove it to our house with the paperwork to sign, and took an Uber back. The car has been great too. It was CPO, so it is under warranty, I would not have done that with a no-warranty used car.
Car before that the Lexus dealer cancelled a sale when they found hidden issues with a used car and found us another that was a great car. To quote, "We are not willing to take the hit on you telling all your friends you sold us a crap car".