Investors & landlords

No... it doesn't work that way unless you do a 1031 exchange and get another rental.