There is another factor involved - the mental factor.
Ali could control himself and stay focused, he wasn't as good as a fighter as many think, he was a quick thinker which made up for some of his other issues he had in the ring.
but tyson was not by any means self anything, he was always a mess and still continues to be a mess.
When his trainer died, D'Amato, he fell apart. D'Amato got Tyson to use his anger and frustration by focusing on his opponent and releasing that energy at the right time, which no one else could that.
The thing is, Ali would have beaten Tyson.