Don't worry about 2 year in 5 year rule. If you focus on this 2/5 year rule, you may lose the long term potential gain. You make big money by holding the property for the long long term, like 7 -10 years. If you only hold 5 years, then sell them, you won't make much money.
Even if you may lose the 2 year in 5 year benefit, you can use 1031 exchange to roll the profit into other rental properties at time of sale. When you focus on small big, you will miss the big long-term gain. This is not a rich mindset.