Not to defend the dealers, but they don’t “pocket” the sales tax. They are required to forward every penny of it to the state...in CA, The State Board of Equalization. If you sell a vehicle privately, the seller pays the tax when he registers the vehicle.
Make that...The BUYER pays the sales tax when he registers a used car. Sorry!