If one has not yet begun davening or learning and feels the need to relieve oneself, they must first do so. According to some poskim this is true even if they can restrain themselves for more than 72 minutes. This is so even if one will miss davening with a minyan, however, not if it will cause them to miss davening before the end of the z’man.