Agreed. Plus ,we can not forget that Khan had to work wonders with a very average batting line up for a long time. Dravid spent the largest chunk of his career playing wih the likes of Ganguly, Tendulkar, VVS and even Sehwag. Although they weren't all great, they were/are better than the likes of Azhar Ali, Asad Shafiq, Salman Butt, Taufeeq Umar etc etc etc.
Look, 4th innings matter, especially when you directly correlate those runs to test matches won.
I get your point thought but it still doesn't change this analysis. Khan and Dravid are damn close, it's like trying to tell who had a better boxing career, Ali or Robinson. So we have to start looking at the minutiae, one of those in big hundreds, triples and ofc, the famed 4th innings.
Khan edges it slightly for me for those reasons...in tests. I have to reiterate the latter.