Flashing a custom ROM is not exactly a possibility if the device is remotely disabled on first activation, as unlocking the bootloader is a relatively lengthy process that requires waiting from few days to weeks for approval, needing also a working Mi account. I'd suggest doing so in these devices anyway, as MIUI has quite a lot of bloatware, and likes to send in China a lot of data with the many applications asking more permissions than one may consider necessary.