I know nothing about your financial situation so take this with a grain of salt. If you are going to sell it in the next two years anyway, I would probably sell it now and take the gains tax free. This is just me personally. Life happens and you don't know that the situation will be in 2 years or if you will have the right options or market conditions available in 2 years that make sense (what if San Diego explodes even more). Not sure what you are shopping for in San Diego but it sort of feels like you might be swapping your equity and rate for a higher cost of living. But I would imagine you would experience even more appreciation. Plus, if being in San Diego is best for your life and happiness, then that's important too.
I will say this, there is one primary residence I wish we would have never sold despite the tax free gain. I regret it to this day. There is another that I am good with us selling and taking the gains tax free. Good luck in whatever decision you make.