Eeevee Light Path, how to make transparent to camera
Eevee has no real concept of rays. But in order to ease the workflow between Cycles and Eevee some of the outputs are supported in particular cases. This node makes it possible to tweak indirect lighting in the shader.
Only a subset of the outputs is supported and the ray depth has not exactly the same meaning:

Is Camera: Supported.
Is Shadow: Supported.
Is Diffuse: Supported.
Is Glossy: Supported.
Is Singular: Not supported. Same as Is Glossy.
Is Reflection: Not supported. Same as Is Glossy.
Is Transmission: Not supported. Same as Is Glossy.
Ray Length: Not supported. Defaults to 1.0.
Ray Depth: Indicates the current bounce when baking the light cache.
Diffuse Depth: Same as Ray Depth but only when baking diffuse light.
Glossy Depth: Same as Ray Depth but only when baking specular light.
Transparent Depth: Not supported. Defaults to 0.
Transmission Depth: Not supported. Same as Glossy Depth.

See https://docs.blender.org/manual/en/latest/render/eevee/materials/nodes_support.html
In your specific case you could use the compositor with multiple view layers to achieve the same results.