Two comments. One is that the problem isn't "homosexuals and pedophiles" (as if they were two separate groups) ... it's almost exclusively homosexuals who are "ephebophiles" (molesters of pubescent and post-pubescent boys).
Second comment is that the solution is obviously to weed out the homosexuals. Even homosexuals who aren't going to molest boys and even those who have the strength to remain entirely chaste don't belong in the priesthood, an environment where they will be surrounded by men, and thus by temptations, at all times. It would be like having me sharing a house with a woman (or worse, women) to whom I am not married.
To me, it's not even about whether they're strong enough (and how would anybody know?) but that it's intrinsically a disordered condition and not what you want in a leader, teacher, counselor, pastor.