It’s not all or nothing. Maybe this was said. The one townhouse that was the pure rental one, I would do a 1031 exchange, which allows you to trade for a rental by your new home tax free. I personally would sell the other and if it was your home the last 3 out of 5 years there is no capital gain...