Religious institutions and religious employers should be allowed to hire based on their views

First, I would like to make clear that this is my first debate on this site and so I apologize for any norms I may be breaking. In the first round of this debate, I would like to focus on the fact that religious institutions should be allowed to hire based on their beliefs and therefore should not be viewed as discriminatory. Let's focus on leadership and teaching positions. A Catholic church should not have to hire an atheist as a pastor on the grounds of religious discrimination. A Muslim mosque should not have to hire a Hindu. A Buddhist temple should not have to hire a Christian. I believe that this much should be clear to anyone and will not discuss it further. Those are all religious distinctions regarding somebody taking a leadership or teaching position. Now I make the case that religious institutions have the right to deny employment in leadership positions based on a potential employee's opinion and/or behavior differing with what the religious institution teaches. I will primarily be using a Christian church as an example in this argument as they are the easiest for me to write about. Say a non-married man who is very knowledgable and qualified in every way to be a pastor is a pastor in a church. It then becomes known that this man has been having sex, and the church decides to fire him because this is in disagreement with their teachings. Or let us say that a man, extremely qualified for a pastoral position, is known to have extramarital sex and is seeking a position in a church. The church refuses to hire him because he is at odds with their teachings. The church is well within its rights to act this way, because the church does not want someone who disagrees and acts contrary with their beliefs to be leading or teaching in their church. This is defended by the first amendment, as freedom of religion means that the government cannot force a religious institution to act contrary to their beliefs. This applies to the decision of a religious institution to hire based on a potential employee's opinion and behavior. Whether this potential employee differs from the religious institution's views in sexual preference, sexual behavior, social behavior, opinions on dogma, or any other reason is irrelevant, because religious institutions are allowed to base their hiring practices around a potential employee's opinion or behavior. Now I will address the notion that a religious institution should be allowed to base their hiring practices at any level and for any office, from the mail room to the custodian's closet, based on religious beliefs and/or personal opinion and/or behavior. A religious institution must maintain its beliefs throughout every level of its organization. An institution cannot denounce a behavior or belief and then be forced to accommodate a person who believes and/or acts the opposite. That also is encroaching on a religious institution's first amendment rights to behave based on their beliefs. If they are required by the government to act opposite of what they believe, the government is essentially saying that while an institution may believe something, that belief is incorrect and they must accommodate and behave according to the belief of the government instead. Additionally, religious institutions typically seek to maintain an image that exemplifies what they teach. They should not be forced to hire someone who would tarnish the image that the institution was trying to uphold. If a church believes adultery is wrong, it should not have to maintain an adulterer as their IT technician simply because his actions occurred outside of the professional realm. If they believe a behavior is wrong, they should be allowed to base their hiring practices around it. That is the entirety of my first argument, in my next I will be arguing that the rights I argued for above should be extended to religious-minded or community-centric businesses. You may argue against that if you wish.