If you draw front to back that could handle some of that - it does have a Z buffer.

Without an early Z test that would still do all the same calculations only to discard the fragment when it would be written to the frame buffer.