What's ur opinion on "you can't be Christian If you identify as a democrat"?

I'm not a vote blue no matter who democrat but I still identify as a Democrat even if I vote for some Republicans. I've only been a messianic jew (yknow the original Christians)for a year or so now but I still believe in helping the poor, orphan, and widow so I vote blue since they believe in doing that. I was recently told I'm not a follower of Jesus because I identify as a Democrat. This was kinda hurtful honestly and made me question my whole relationship with yeshua.