I personally am glad you asked that question to us all, as doctors can make errors in judgments as pertaining to diagnoses and as so many signs and symptoms can seem like one condition to a medical professional, but it could be another condition instead with similar signs and symptoms of that misdiagnosed condition, if not dual conditions.
Or in another case, it could be one of the conditions you mentioned (ASD or OCD), but with just signs and symptoms of the other, not enough to warrant a secondary diagnosis or dual condition. And lastly, it could be a condition you or the previous doctor never considered, as again there are so many conditions that can be mistaken for another, and as signs and symptoms can overlap.
I think you asking others for their opinions is to be respected, as in order to have correct diagnostics it is good to get information from a variety of sources. Certainly doctor opinion is very important, but you would be surprised how much persons can learn through forums that involve persons with all types of conditions. Our opinions does not mean further evaluation is not needed, but it is just another thing to consider.
If you are just asking if the signs and symptoms you described look from the surface to be more to be ASD or OCD, I would without hesitation say it looks like the latter (see further below). When I was around eighteen, I was told I had OCD tendencies by one psychiatrist, but it did not reach the point of an official diagnosis he said. I researched that condition and agreed though I had some signs and symptoms of that. He and most of the other doctors concurred though I had a form of Social Anxiety Disorder, as the only diagnosis that I had. One or two others though said AvPD, as it was a severer form of SAD.
But, first, with regard to the rituals what you described, that is almost exactly what I had. I would recheck doorknobs, stack towels, and for writings it had to be precise a certain way, with regards to detail, organization and structure. I got lots of stress if things were not done like that, or if my mind was telling me I did not do that, like turning off the lights or range, too. So, I had to keep checking those things, or for writings, keep changing things.
With Aaron, our seven year old son with higher functioning Autism, it seems different. His rituals do not seem like that. He will get upset for instance if my wife tries to feed him, put him to bed, or prepare his meals him if he was used to me doing that, for several times in a row, or if I tried to take him to the library and read to him when he was accustomed to her doing that for awhile. Or if food is not prepared a certain way, or if we do not drive a precise route, this can upset him, to name a few.
So, it would seem like a difference between OCD rituals and Autistic rituals. I may be wrong, but I am using common sense or good reasoning. it is as if the routines for Aaron's Autism are because of some habit or sensory issue that turns into a very rigid need, but for those with OCD it is as if the mind can at any time irrationally say I have to do that thing again, or do it this way as that is how it should be. To me, it looks like a distinct difference.
The good news is I outgrew the majority of those compulsions somehow, without drugs. I do not know if by getting more serotonin through more sunlight and exercise played a part, in helping things, or if the improvement just occurred more naturally, or from training myself through self-help to shift my mind elsewhere and think more positively, but regardless, with exception to the writing thing, I have little to zero issues with compulsions. It never anyways was a huge issue in my life anyways, those compulsions, as there were just a few, and it was going on for a few minutes and not hours. Others may need medication though for OCD.
Now, could it be that you do not have Autism, even if milder variety, based on what I said? Yes, absolutely. Again, doctors are sometimes prone to either underdiagnoses or misdiagnoses. In our family's cases, involving my wife and Dylan, it happened too often. I have no way of knowing though, if you were evaluated correctly, as I do not know if there was adequate testing or analysis done, and by what type of doctor, a specialist or general practitioner. I can only say I read your other thread posts and I do not see many indications of Autism by your statements.
For instance, to start, I do not see any sensory sensitivities in you from your statements made in all your thread messages as of yet, though you could have some but not told us yet of such, and I do not see most of the other typical core symptoms of Autism from the little sample of messages. You mentioned in one thread you could be literal, and that could only be a very very small indicator of possibly ASD, but I could argue in that literal thread that message from you where you said did not move when that person told you to move, could be because of very low self-esteem or anxiety instead, in wanting to please them, and not move the wrong way, or to do what they told you, and not necessarily because you took things literally and needing more information from them first.
So, let's say for the sake of opposing argument the routines were OCD signs and symptoms, and not ASD, what then are the other core ASD symptoms that were revealed in all your thread messages? I have not heard of cognitive issues, any noticeable motor issues and speech issues, and the social and emotional, and behavioral issues could be explained by something else. I could be wrong, and I do not have doctor credentials, but if I were you I would evaluate for Social Anxiety Disorder or AvPD, Avoidant Personality Disorder, too.
Why? Because you seem to have many of those traits, if not more than Autism. Like, from those other thread messages from you, you suggest or state being over sensitive; meaning possibly a hypersensitive to criticism or rejection I am assuming because of shyness traits and feeling alone and not socially appropriate, and as you seem to lack much social self-esteem, and have trust issues from things you said and from being overly apologetic in messages, too.
In your other thread postings, you have said you can be watching persons, and I saw in one message you said you were aware of others' facial expressions and said you can get upset at little things, and you say you can rock back and forth, but that rocking could be severe anxiety related, as I paced like when I thought I said or did something wrong, back when I was in my teen and early twenties. I was way too self-conscious, shy, and hypersensitive to negative evaluation too, and with a desire to please.
Also, although those with AvPD generally feel intensely alone because of often little or no close friendships, most do not want to be alone. You seemed mixed with your feelings there in those other thread messages, but I sense you want one or more in your life but have somewhat resigned yourself to it not happening because of very low self esteem and those sensitivities. Those with that condition, want to have friendships or relationships, but are fearful to give their all assuming things would not work out as usual. These persons often need to feel they would not be rejected, before trusting one to open up to any big degree, so they often give less effort.
You may very well have Autism, if there is much more information I am not privy to, and if you had very competent doctor testing and analysis, but it sounds like you have OCD traits, and not necessarily severe enough to warrant that label, but you may want to check into Social Anxiety Disorder, or the more severe version Avoidant Personality Disorder. I had both SAD diagnosis and OCD traits, and AvPD diagnosis and OCD traits, and so what you said reminded me almost exactly of myself during the teens and twenties. Thankfully, I improved much since then, in both regards.
I just know from what I read in all those message threads I saw many SAD or AvPD traits, and not high functioning Autism traits, and in your thread here I saw OCD traits, like I had, too. You might want to look deeper there, and get evaluation there. The fact you questioned whether it was Autism or Ocd, for the rituals, does not make it sound like you you are 100% sure you had Autism. Otherwise, I would not have looked deeper.