Depth func LESS_EQUAL not working as expected

I’m reposting here a StackOverflow question. Since this could be a generic graphics question I’m asking here too even if the frame debugger capture comes from a d3d implementation. I’ll immediately close the question if this is considered a misuse of this space.

How is it possible that a fragment is generated, passes the depth test but isn’t written to the current render target?

This is the pixel history I see if I capture a frame in RenderDoc:

The fragment should pass the depth test (same depth of the corresponding pixel in the depthbuffer and depthfunc = Less equal), blending is not enabled, stencil test is not enabled, but the new color is not written.

What am I missing? Is there some other state I’m not taking into account?