I don't agree with you often, but you are absolutely right on this.
They both accept members on a volunteer basis. If you are part of either organization you would be welcome to leave if you like.
I am not an atheist but, I despise organized religion. about the most hypocritical bunch of nonsense I can think of.
I also believe people shouldn't be discriminated against based solely on their sexual preference, even if I do not necessarily agree with it, but denying membership based on such a thing is not necessarily discrimination.
....if I have a club like the church or scouts, and I do not want a particular type of person. Be it race,gender,class,or sexual preference,smoker,or not. It is my right to not allow them membership. If you don't like it.. start your own club.