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