Issues with rendering Custom Depth

I find it highly undesirable and would like to just render a solid color opaque material when drawing into custom depth

This is how I handled Translucent objects in Custom Depth, I added some code to allow me to check from the Scene Proxy if its currently rendering Custom Depth, and if my object is translucent I swap out the material for a basic opaque material.