Rent or buy?

I am currently renting with my wife in San Diego. At the moment, we don't have any long term plans for staying. We hate the idea of wasting $2,100 a month on our 1 bedroom apartment. Is it worth buying a condo of similar size, even if we might move in a couple years?