@technonicx user IMEI was thrown on my Mi 9T device and I had the same problem. I updated it directly with the software from OTA and I did not have IMEI problem. However, applications that you will use for ROOT authorization can be deleted. Nevertheless, I would recommend that you install it with some more research.

@technonicx user You can install ROM with Odin program. In these processes, IMEI is also deleted.

Maybe you are insterested