Phonology

In English, the initial /p/ in “pin” is typically aspirated, while /p/ after /s/ in “spin” is typically unaspirated. If this difference does not distinguish words, how is it best analyzed?