Unable to render Custom Depth with translucent material applied

Is this intended behaviour? It also stops the object showing up the scene depth texture, it would be nice if it could be toggled on a per object basis. This comment seems to suggest is intended behaviour but sadly doesn’t elaborate on how to change it.