That's an interesting take. What makes you think diversity played a major role? Does this happen often in your country? Where I am "diversity" hiring would be regarded as dysfunctional at best.
What makes me to think that diversity could have played a major factor is my observation with similar hires in other places, my experience in the hiring committees recently (members saying there is pressure to hire a female), and the fact that this person’s qualifications seem to be less than those of others excepted to be available for the role of CTO at such renowned company.