The redmi isn’t readily available outside of Asia. There are many great android phones which aren’t available to me in the UK unless I import them and then I loose out on warranty and after sales support.
Wouldn’t get the M40 as it doesn’t have an Oled display but it’s good to see Samsung getting more competitive in the mid range market.
I still think if I were going to get a midrange phone I’d get the pixel 3a as it ticks most of my boxes.