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