Unlit Staticmesh

You can use custom depth as a mask by setting certain meshes to render custom depth, then in the post process material blend between PostProcessInput0 and BaseColor using the custom depth as an alpha.