Samsung NX300M has a
20.0MP APS-C (23.5 x 15.7 mm ) sized CMOS sensor and features DRIMe IV processor. On the other hand, Sony A6500 has a
24.0MP APS-C (23.5 x 15.6 mm ) sized CMOS sensor and features Bionz X processor.
Below you can see the NX300M and A6500 sensor size comparison.
Samsung NX300M and Sony A6500 have almost the same sensor size, so neither of them has any significant advantage over the other in terms of providing control over depth of field when used with the same focal length and aperture.