Two allophones can appear in the same context, and the choice of allophone is essentially random.

leap/lip/ -> [lip], [lip̚], lit/lɪt/ -> [lɪt], [lɪt̚]