Below you can see the front-view size comparison of the Sony RX10 II and Panasonic G9. The Sony RX10 II is 8 mm narrower and 9 mm shorter than the Panasonic G9 but it is also 10 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.