Both Panasonic LX10 and Canon G7 X MIII have 20.0 MP resolution sensors but Panasonic LX10's sensor is 1″ (13.2 x 8.8 mm ) and Canon G7 X MIII's sensor is 1' (13.2 x 8.8 mm ).
Since Canon G7 X MIII's has a larger sensor area with the same resolution, this means that it also has a larger pixel area hence better light collecting capacity for a given aperture compared to Panasonic LX10.
Below you can see the LX10 and G7 X MIII sensor size comparison.
Sensor Size and Resolution Comparison image of Panasonic LX10 and Canon G7 X MIII Cameras
Panasonic LX10 and Canon G7 X MIII 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.