Nikon D6 has a
21.0MP Full frame (35.9 x 23.9 mm ) sized CMOS sensor and features Expeed 6 processor. On the other hand, Nikon Z6 II has a
24.0MP Full frame (35.9 x 23.9 mm ) sized BSI-CMOS sensor and features Dual Expeed 6 processor.
Below you can see the D6 and Z6 Mark II sensor size comparison.
Sensor Size and Resolution Comparison image of Nikon D6 and Nikon Z6 II Cameras
Nikon D6 and Nikon Z6 II 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. On the other hand, since Nikon D6 has 17% larger pixel area compared to Nikon Z6 II, it has potential to collect more light on pixel level hence have less noise in low light / High ISO images.
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
Nikon D6
or the
Nikon Z6 II ,
including hyperfocal distance.