How to merge two Camera's render textures using each other depthbuffer

I’m using the Built-in RP.

I have two Cameras rendering different layers in my scene. I would like to “merge”, assemble the rendering of this two camera using the depthbuffer of each to know which object is closer.

How can I access the depthbuffer, depthTexture of each camera?