Question about the similarities between persistent feelings about feeling dead, Deep realization/Derealization, Nihilism and Cotard Syndrome

When I was severely depressed, I had persistent feelings of being dead, that life has no meaning and felt like nothing is real. I was wondering if it is similar to Cotard Syndrome, with self-awareness