Don't miss San Francisco in favour of Palm Springs.
Between Death Valley and Yosemite there are numerous places to stay - Bishop or Mammoth Lakes are the two obvious ones. Bishop has plenty of the usual motels.
I did Las Vegas through Death Valley to Bishop, where I stayed overnight, then carried out the next day through Yosemeite, did that, and stayed at Modesto that night, then next day onto San Francisco.
Between Death Valley and Yosemite there are numerous places to stay - Bishop or Mammoth Lakes are the two obvious ones. Bishop has plenty of the usual motels.
I did Las Vegas through Death Valley to Bishop, where I stayed overnight, then carried out the next day through Yosemeite, did that, and stayed at Modesto that night, then next day onto San Francisco.

