For commercial gyms - Fitness SF Fillmore has a lap-pool, great for getting some compound movements and laps within the same session. Fitness SF Transbay is probably the nicest commercial gym in the city. Can’t beat the outdoor gyms though heh :)
YMCA in Embarcadero has everything from a pool to sauna for a very reasonable price, with no lock in contracts