Would it have been as fast to just fly on to SMF and repair the landing gear there?
For us passengers yes, but keep in mind that UX maintenance facilities are available at SFO. Plus the emergency was declared about the time we were over the OAK airport after departure so we weren't too far into the flight.