How a fragment is combined with the data already in the frame buffer depends on various settings. In a typical case, a fragment may be discarded if it is farther away than the pixel that is already at that location (according to the depth buffer).
The method of incorporating a fragment into the existing data within the frame buffer depends on various configurations. Generally, a fragment could be eliminated if it is positioned further from the current pixel in the scene (as determined by the depth buffer).