What I've been told is that people with ASD have a lot of the same issues with their executive functioning, and in many cases they can be diagnosed with
both ADHD and ASD. Furthermore, it's quite common for siblings of those with ASD to suffer from ADD/OCD/etc.
However, one crucial difference is that the ADHD type of 'hyperfocus' is often in practice not as useful as it seems/feels, whereas the ASD kind of obsessive focus can be very productive and useful.
My personal experience, comparing myself to friends who have (severe) ADHD, is that a crucial difference is that I find it easier to see the bigger picture, assuming I'm not stressed (which is difficult to achieve), and can sort of channel my 'hyperfocus' in the right direction. These friends often struggle with this, and can easily spend hours or days doing something that in hindsight wasn't the right thing.
(interestingly, I feel that this 'problem' also has the upside in that they are often more artistic than I am, perhaps because a lot of what they do is not limited by a clear 'goal')