Just a thought but the Marriott Marquis has been a great stop for us. The valet was very welcoming. We are platinum members and even during a busy convention time we were upgraded to a suite with a great view in a recently renovated section. The View lounge is a great place for a martini and the staff has been wonderful. I have stayed here several times and it is always a wonderful memory. I have not stayed at the JW or Ritz so cant compare but the Marquis has been great to us.
You can't go wrong with any of these hotels, including the Marquis. I have always found that I spend little time in my room when in SanFran. It's such a great city to be out exploring.
If at the Ritz, I don't think you get lounge access without paying for it. The JW has the better Concierge Lounge, but the Marquis has the "View' Lounge (on top of the hotel) as pusher noted and that is probably the best view in the city.
Enjoy the stay!