The failure of those best minds to produce results is an artifact of non-reason based education (in my country there was a huge emphasis on rote learning) and a lack of institutional support.
My friends in the West from other Muslim countries have corroborated this. It's always the bottom tier of students or the particularly devout that end up in the clergy.
Ironically, a more “originalist” reading of primary Islamic texts would be more politically liberal than rulings which were issued centuries after the death of Muhammad -- these later rulings severely restricted the conditions under which people could rebel against their rulers.
Later, clergy aligned with the rulers, such as Wahhabists in Saudi Arabia, took an even more absolutist position which made any public criticism against rulers a form of rebellion which is punishable by death.
These perversions are, of course, a failure of the clergy. But they have been set up to fail by the political regimes which designed these systems, as well as by their societies which reinforce and legitimize the intellectual caste system.
In a very sketchy way:
- you may have excellent scientists and prestige for science, but no institutional structure/ecosystem to support, promote and benefit from it;
- you may have lousy clergy but a well-working institution/structure of religion that helps with its prominence over society.
(and the other way around, and mid-ways as well)
I do really doubt it.
In fact, you would be considered a loser if you didn't have a degree or knew maths really well in my family. Which I don't agree with.
The problem in the arab world is more political, with a bunch of people staying in power and using media and force to stay in power. It also doesn't help that the west cry for more democracy but propels and supports those same dictators to stay in power to help their interests.
My opinion on the matter is that, in the islamic world, religious careers are more socially rewarding than scientific ones. Thus the best minds seeking a good social position go the religious studies instead. The idea of science is also not really important to a lot of muslims, who views their holy book as a revelation that explained the world already.