I would say from experience the effect size of either is infinitely small. A research-level statistical phenomenon and almost nothing of clinical relevance. Doesn't mean I don't try it, but don't expect this to be meaningful in terms of treatment effect.
The most important pharmacological (not treatment) steps for OCD should be SRI (typically prozac) to max doses tolerated-> fluvox (or skip) to max tolerated-> clomipramine. The rest needs to be the exposure/OCD therapy.
Pharma can be expected AT BEST to reduce symptoms by 40-60% in OCD, even when well optimized. If you've already achieved this, then pharma is not where you should be looking for further OCD effect. Way better to do therapy (even supportive) than to push harder on the meds.
Edit: I would say from my experience working with a lot of severe OCD, that I would rather escalate care to a MAOI then waste time piddling around with augmentation strategies if someone has not achieved the 40-60% drop we expect. I have not had to utilize this given that clomipramine has worked in combination with supportive psychotherapy for refractory, severe OCD causing SI/severe depression in several cases I've had - but I definitely would use it should it be appropriate. An antipsychotic makes much more sense to me than memantine given that a majority of severe OCD cases have had (or have) concomitant MDD (I think the research estimates up to 60%?), and we know abilify augmentation does work for depression.
I am familiar with the literature and also need to say that misdiagnosis of psychosis as OCD is a frequent phenomenon in people who are not OCD experts. Given this, I think the data supporting antipsychotic augmentation in OCD is flawed due to this phenomenon (psychotic patients are called OCD, and they respond to the antipsychotic thus supporting the incorrect hypothesis).
Given that, it makes sense for providers not familiar with OCD who have not seen the expected 40-60% decrease in symptoms to trial augmentation with an antipsychotic. If the patient responds robustly, they should consider the possibility that what they thought was OCD was actually psychosis. If they don't respond, then discontinue the antipsychotic and escalate the pharma treatment for OCD.