This is the short saying of Imam Ali a.s: One, who acquires power cannot avoid favouritism. Nahj Al-Balagha, part 3/ 160
what ever the circumstance when one leads the opposition carry different opinion but after coming in power think and act differently.
But it is definite he can not avoid favouritism after acquiring the power.