Below you can see the front-view size comparison of the Pentax MX-1 and Olympus XZ-2 iHS. The Olympus XZ-2 iHS is 9 mm narrower and 3 mm thinner than the Pentax MX-1 but it is also 4 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.