You might consider staying at the Waterfront Hotel in Jack London Square. Its right at the train stop. You will be able to get food, get right into a room. In the morning you can see some of Oakland if you wish. BART is a short walk, you can Uber, or even take a ferry into San Francisco.
my .02