This has two planes that partially occupy the same locations in 3D. Thus, certain pixels are colored by the same projections of the same locations and are ambiguous in what color they should be.
Rotate the viewpoint to see the ambiguity in action.
Turn off the depth test to remove the ambiguity. The green plane (plane2) will always win.