It would probably be cheaper to fly in and out of the same city - there will be no one way dropoff fee for the rental car. Compare airfares and car rental rates for all the cities on your route to make the decision - LA, SF, LV, and SD. A "loop" trip to see what you want can be done from any of those 4 cities.