Both the phones have their own specification to prove themselves. But there are differences in choosing the mobile depending upon the people perspective.
Realme X2 :-
Realme X2 , Upper Mid range mobile mostly designed for a bit heavy usage of mobile in all mid range category,
Because of it’s PROCESSOR SD730G it has a 8nm technology ,It integrates eight cores (octa-core) divided into two clusters. A fast performance cluster contains two ARM Cortex-A76 cores clocked at up to 2.2 GHz and a power efficiency cluster with six small ARM Cortex-A55 cores at up to 1.8 GHz. Depending on the workload only single clusters or all cores can run at different clock speeds.
And the some of Other advantages of Realme X2 is it has a 30W fast charging capacity which full charge in approx 45min and camera department was really cool.
This is mostly for student, and for heavy performance usage user in mid category though it doesn’t give a long backup of battery life as compared to Samsung M31 But it has a 30W fast charging technology which convince it.
Samsung Galaxy M31 :-
Samsung Galaxy M31, a Mid range mobile , mostly designed for long battery but we can’t expect a heavy performance as realme X2 .
The Samsung Exynos 9611is a mid-range SoC for Android based smartphones and tablets. It integrates 8 processor cores in two clusters . Four ARM Cortex A73 cores at up to 2.3 GHz for demanding tasks and four ARM Cortex A53 at up to 1.7 GHz for power efficiency. Compared to the older Exynos 9610, the 9611 supports higher resolutions for the rear faced camera.
In Camera department M31 slightly has a better performance comparing to realmeX2. And the software/UI samsung has a better smooth performance compare to realme x2 And it has a battery capacity of 600mah so it lasts long compare to realme xt.
This is Mostly for people who doesn’t expect a heavy gaming and expects a long battery life then this definitely a worth it in this price segment.