I’m not sure if this is the same as what you’re describing, but I’ve had the experience in the past of feeling deeply depressed and in emotional pain, and feeling this almost compulsive draw to the suicidal thoughts as a result. The thoughts can feel intrusive, because I’m aware that I don’t want to have them, but I also know they’re a natural result of being in so much distress.
I often found when I tried to describe that experience to my therapists at the time, it left them a little confused about whether I was truly suicidal or experiencing intrusive, OCD-like thoughts about suicide. I knew I was suicidal because I was having intense depression symptoms and was starting to make plans to act on those thoughts, but I also deeply wished I wasn’t feeling that way and therefore wasn’t having those thoughts, if that makes sense.
I don’t have any wise advice in navigating that situation, I’m afraid, but I hope it helps to know you’re not alone!