Except it's got a mid-tier processor, and likely pretty under-performant cameras like most Motorola stuff? Compromises here.
Also, even by your own source, Xiaomi is bested by the iPhone and Google Pixel. Motorolas flagship phones place much lower, and I don’t see any phone that costs $400 place anywhere near the top.