Unity appears to flip the ZTest mode for you when they’re using a reversed z, so you don’t need to think about it (unless you’re manually supplying your own projection matrix to the shader, in which case you do).
If you’re using a custom projection matrix instead of one supplied by Unity, Unity may be expecting a reversed Z, so will be flipping the ZTest on you meaning you either need to flip your projections as well or manually flipping your shader’s ZTest as well so when Unity flips it again it’ll be what you actually want. The hard part is I don’t know if Unity has anything on the script side that you can use to know when the z is being reversed so there might be some guess and check there.