Below you can see the front-view size comparison of the Canon G3 X and Sony RX10 IV. The Canon G3 X is clearly the smaller of the two cameras. Its body is 10mm narrower, 17 mm shorter and 40 mm thinner than the Sony RX10 IV.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.