Characterizing posets for which their natural transit functions coincide