San diego or san francisco?

me and my wife want to go and visit california and trying to decide between san diego and san francisco. What things are there to see ? which one has more stuff to visit and also do both have nice beaches near by ?