This is a weird behavior we can see on some different use cases:
- lines because two edges are rendered very near even if they are on different depth, note that in some condition (and angle) the lines can be red or other colors:


- lines on surfaces junction:

