One thing. You actually need to get a ticket for BART and Caltrain.
So its pretty doable to take public transport to the Sofitel from SFO.