Descartes first development of his cogito is this:
If my existence could be given to sensation, it could be doubted.
It is impossible to doubt I exist.
If my existence could not be given to sensation, it cannot be physical.
A more elegant argument for the spirituality of the self is hard to imagine.