Both Olympus E-M1 II and Panasonic GH5 II have Four Thirds sized 20.0 MP resolution sensors so sensor size and resolution is not a differentiator between these two cameras.
Another similarity between these two cameras is that both Panasonic GH5 II and Olympus E-M1 II sensors lack anti-alias (Low-Pass) filters. Removing anti-alias filter increases the sharpness and level of detail but at the same time, it increases the chance of moiré occurring in certain scenes.
Below you can see the E-M1 II and GH5 II sensor size comparison.
Sensor Size and Resolution Comparison image of Olympus E-M1 II and Panasonic GH5 II Cameras
Olympus E-M1 II and Panasonic GH5 II have almost the same sensor size, so neither of them has any significant advantage over the other in terms of providing control over depth of field when used with the same focal length and aperture.
DxOMark Sensor Scores
Both Olympus E-M1 II and Panasonic GH5 II 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, E-M1 II has scored 80, 1 points higher than GH5 II.
Model
Overall
Color Depth
Dynamic Range
Low-light ISO
Olympus E-M1 II
80
23.7 bits
12.8 Evs
1312 ISO
Panasonic GH5 II
79
23.7 bits
13.1 Evs
1136 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
Olympus E-M1 II
or the
Panasonic GH5 II ,
including hyperfocal distance.