When I render objects in Cycles that use materials with alpha texture plugged in - I get these weird glitches in mist and depth passes.
I found convoluted solutions in the internet how to get rid of these:
https://blender.stackexchange.com/questions/38111/what-causes-this-mist-pass-glitch
The earliest issue that I’ve found was addressed about 5 years ago.
However, I found a better solution - it seems like EEVEE doesn’t have problems rendering Z or mist passes.
But anyway, is this a bug or technical limitation of ray tracing renderers?