Is Render in Depth Pass a dead button?

I want a mesh only render to scene depth and don’t want it to render in main pass and custom depth(used for something else for the same pixels).
I uncheck render in main pass and keep the check in render in scene depth, then I find out the scene depth will disappear when I uncheck the render in main pass. And the render in scene depth button doesn’t seem to change anything?
I saw some guy saying need a custom build engine to fix this issue, is there a way to fix it just using the default unreal engine? I am using UE 4.26.

Thanks