Below you can see the front-view size comparison of the Olympus XZ-2 iHS and Olympus E-M10. The Olympus XZ-2 iHS is 6 mm narrower and 17 mm shorter than the Olympus E-M10 but it is also 2 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.