Just note with xiaomi phones not all phones are the same in terms of rooting. Some phones need 'pairing with xiaomi account' some of them don't. It depends on preinstalled flavor of Android. For example my M1A1 does not require that becuase it is "Android One" phone - making the stock quite good. The problem with rooting this phone specifically is that Android One phones use some sort of A/B partition system for seamless updating.
https://source.android.com/devices/tech/ota/ab/ There are not so many guides on this and it was a littlebit of hustle. But i guess more and more phones will be like this so it will get easier.
Of course if you don't mind just buy OnePlus where everything it is very easy (i had OnePlus one before).