Hi, welcome to PC.
Unfortunately for a lot of us, dealing with depression will sometimes mean thoughts that we can't control... like suicidal ones.
Do you have anyone to talk to about this? Like a therapist, or a counsellor? Or perhaps whomever diagnosed you with OCD?