Below you can see the front-view size comparison of the Olympus E-P5 and Canon M50. The Olympus E-P5 is 19 mm shorter and 22 mm thinner than the Canon M50 but it is also 6 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.