When a pilonidal cyst contains hair and dead skin, it gradually gets infected and creates an abscess. A pilonidal cyst contains hair, whereas an abscess contains purulent discharges.