I have OCD which mainly manifests itself in a fear of contamination(germs)and the idea of sex is disgusting to me but I don't know if I can say I'm asexual because I do experience sexual attraction I just can't make myself do it without having a panic attack.
If identifying as asexual is useful to you, then you’re allowed to do it. Most of us agree that it’s fine for people who do experience attraction but are sex-repulsed or don’t wish to be sexual to call themselves asexual if they want to, because even though it’s not the ‘official’ definition, we’re not here to exclude anybody who wants to be part of our community or would benefit from it.
Does it help or otherwise benefit you to identify as asexual? Then you can identify as asexual.