Think it through, please ....
There's a bit more to this than meets the eye.
Yes, of course Turing was brilliant and made a dramatic contribution to the war effort and to computer science.
However, like many other brilliant people, he was a seriously flawed character.
His homosexuality came to light as the result of a break-in to his house conducted by an associate of a homosexual lover who then proceeded to threaten Turing. Turing complained to the police that he was being threatened or blackmailed in relation to the robbery which they were investigating and it's in the course of that police investigation that the nature of his relationship with the lover emerged.
Clearly an individual with such high-level security clearance being blackmailed was a national security risk on a major scale and the fact that he expressed no regret about the situation which he had allowed to take place exacerbated the situation and gave every reason to believe that if he were allowed to continue with security clearance for GCHQ and similar work there could be a repetition of the problem. The outcome of the legal case in relation to the lover of criminal intent was a conditional discharge. In Turing's case, his choice was probation on condition of supervised oestrogen treatment to reduce his libido.
Now, whatever Turing may or may not have been, he wasn't intellectually thick. And it certainly can't have been beyond him to ascertain the probable feminising results of such treatment, both to his body -- development of breasts -- and to his mind.
It's a sad case -- but what to me it illustrates is that a brilliant individual whose mathematical skills made a major contribution to the world in his particular area of expertise behaved in a grossly-ill-advised way with a criminal who was prepared to blackmail him and thereby placed himself in a situation in which there was no practical option to the government of the day but to withdraw his security clearance. The fact that his grossly-bad judgement with regard to the individual with whom he had such an extremely-close relationship was tied in to his homosexuality was what led to the charges against him being on that basis, but consorting with dubious persons of any criminal nature would have led to his security clearance being withdrawn in any case.
Like it or not, no matter how much he'd contributed in the past,Turing was a security risk. Even if his relationship with Murray had not been related to his homosexuality, and if neither of them had been homosexuals, the fact of the matter was that his "friend" had knowingly provided the lead for a criminal associate to burgle Turing and that was the underlying issue.
Turing was brilliant intellectually, but fatally flawed in his judgement with regard to human relationships. How ironic that one who contributed so much to the security of the nation should have behaved in a way that placed that very security at risk and that he should have shown no remorse at so doing!