Below you can see the front-view size comparison of the Sony RX10 IV and Canon G3 X. The Canon G3 X is clearly the smaller of the two cameras. Its body is 10 mm 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.