Just be aware with Xiaomi phones that you might be restricted for certain things.
My memory’s not great, so I can’t remember if it was unlocking the bootloader or root, but Xiaomi locked it behind an account. You can’t unlock without setting up a Xiaomi account that includes, from memory, your email address, phone number, and date of birth.
I’ve read that newer phones are going to be even more locked down, but I don’t know if there are going to be workarounds.