Are the religious views on homosexuality straightforwardly discriminatory? It is not clear to me that they are. Being a same-sex attracted person is no problem for many of them, it is just that, on their view, it is wrong for such persons to pursue intimate relationships. One celibate gay man is a leading biblical studies professor at a conservative Christian college.
Some people, it seems, can't help being attracted, and only attracted to little boys. They shouldn't be discriminated against if they are this way, unless, of course, they pursue intimate relationships in accordance with their orientation. But the pursuit is an action, not a fact about them that cannot be changed.