Both Sony RX100 VII and Canon G5 X have 1″ sized 20.0 MP resolution sensors so sensor size and resolution is not a differentiator between these two cameras.
Below you can see the RX100 VII and G5 X sensor size comparison.
Sensor Size and Resolution Comparison image of Sony RX100 VII and Canon G5 X Cameras
Sony RX100 VII and Canon G5 X have the same sensor sizes so they will provide same level of control over the depth of field when used with same focal length and aperture.
DxOMark Sensor Scores
Both Sony RX100 VII and Canon G5 X sensors have been tested by DxoMark. DxoMark scores camera sensors for color depth (DXO Portrait), dynamic range (DXO Landscape) and low-light sensitivity (DXO Sports), and also gives them an overall score. Of the two cameras that we are comparing, RX100 VII has scored 63, 1 points higher than G5 X.
Model
Overall
Color Depth
Dynamic Range
Low-light ISO
Sony RX100 VII
63
21.8 bits
12.4 Evs
418 ISO
Canon G5 X
62
21.4 bits
12.3 Evs
471 ISO
Sensor size sets the circle of confusion, so it drives how much depth of field each
of these bodies gives you at a given aperture. You can calculate it exactly for the
Sony RX100 VII
or the
Canon G5 X ,
including hyperfocal distance.