If it is to take your real estate profits to avoid losses, the 2-year personal use might eat up the taxes you seek to avoid.
It might be a wash between paying 25% now in taxes versus taking a 25% loss over the 2 years you need to occupy the rental property. Evaluating this trade requires a crystal ball, however.