But I read here in these forum pages that HIKvision manages to do the job better on the same hardware specs.
There's a back to back comparison on here somewhere and the overall conclusion, (not sure on dof specifically), by many on here is they believe the Dahua has the edge. That's why most on here have chosen to buy the 4kx and not the GU. That said, you're free to make your own conclusions by looking at the comparison if you can find it as we all prefer different pictures.
I believe there's no magic formula to this. It's well known that the larger a sensor the shallower the dof potentially and when you use an f1.0 aperture, it's hardly surprising in outcome that dof may suffer. I'd guess that on the smaller sensors we haven't seen this before because it's something known in camera circles and most cameras use 35mm sensors with even many compacts using sensors larger than the 1.1.8" or smaller that has been typical on CCTV cameras for some time. I'd make a guess that the sensors used previously have never been large enough to exhib this and 1/1.2" is just begining to reach that threshold. There is an answer though, and that's to use a smaller aperture on the lens and rely on improved sensors to gather more light instead. There are action cameras that use a larger 1" sensor but don't have shallow dof so I would put that down to lens choice. eg the Insta 360 uses a 1" sensor but with an f3.2 lens. Unsure of it's low light performance.
There was a CCTV camera with large sensor that someone on here bought that all but saw in the total pitch black dark, but it was very very expensive (I think around $5K without a lens), and Dahua dropped it I'm guessing because of sales volume. I'm not sure what aperture it used but whilst the picture was amazing, the price wasn't!!!