If people feel bad being around you, they're not going to want to be around you. Simple as that. It's not even a conscious decision, it's a subconscious mechanism of being part of a social species. It's not just plain negativity, but moreso festering bitterness. Your comments exude it. And it matches what you said, people don't "discard" you immediately, but once you get to know them, drop your guard, and show them your bitterness.
You whine that people shouldn't "discard" you even though you're so bitter, but that right there is a sign of entitledness. People have one life, why spend it with someone bitter who makes you miserable, instead of someone who makes you feel good and happy and helps you get the most out of the one short life you get? They're not "discarding" you, it's not all about you, they are protecting their own right to seek happiness in life. You try to paint it as if it's all about you, removing their agency, and their rights, it's just about you, you, you.
You can ignore what I'm saying, or try to paint me as a bad person for saying it, but it is a fact. And I'm not the one complaining about being "discarded." You're not stuck, you can change. Or you can just blame me for saying it like you blame everyone else, ignore your own agency and responsibility, and stay miserable. Your choice.