Do Dealers Gain Anything When a Customer Pays Cash or Has Their Own Financing?

If I offer to pay cash for a new vehicle at a dealership (because I have decided to use my own financing or because I simply have the cash and don’t want a car payment), should I expect a better selling price because of it?

I’m assuming the dealer wants me to finance or lease because they make money on the lease/loan correct?

I suspect it’s not like some other transactions where if you offer to pay cash, you get a better price, but I’m not sure.