Classical yoga (the Samkhya framework Patanjali inherits) draws one fundamental line.
Purusha is pure consciousness: the seer, the still witness at the centre, recognised rather than manufactured. It does not act; it is aware.
Prakriti is nature: everything that is not Purusha, including the body and including the mind. The senses, the ego, the intellect, thoughts, and the gunas that colour them are all Prakriti in motion.
The confusion the whole path unwinds is that we take ourselves to be Prakriti, the layers and the story and the mind, when what we are is the awareness those things arise in. This is the still point mapped at the centre of the Layered Self, and explored further as the three aspects of self-realisation.