I had many Xiaomi phones roughly from 2014 to 2024 and all were chock full of software bugs, going worse in more recent phones up to the point I couldn't take it anymore and bought a Samsung.
I will never go back to Chinese crapware. The hardware is useless without stable software and what they have is a sad impression of such. Couldn't care less if Xiaomi puts a trillion zillion gigs of RAM and CPUs and cameras and shit, wouldn't pay one dollar for their flagship phone, not to mention asking comparative prices to top Samsung, lol. Never again Chinese!