Below you can see the front-view size comparison of the Canon G7 X MII and Canon M100. The Canon G7 X MII is 2 mm narrower and 6 mm shorter than the Canon M100 but it is also 7 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.