If your church or your political party is not full of "your people" then you've got a problem, because the things that make people "your people" are the foundations for organized religion and political parties.
That's not so for science and technology. One can be an excellent scientist/engineer/technician while holding pretty much any set of religious or political beliefs [1].
If you are unwilling to learn science or tech from people who would not be acceptable in your church or political party then you are going to have a much harder time becoming a first rate scientist/engineer/technician than those who do not so limit themselves.
I recognize that when you attend a conference and you do not have friends there then you might find yourself having to choose between being alone or socializing with strangers during those times when there are no actual conference events that you are attending.
If you cannot socialize with with who are not "your people" that too is going to limit you. Those who are able to figure out how to have social relationships with people based on their common interests despite also having areas in which they have major disagreements have an advantage. They'll have bigger, more diverse, social networks which are more likely to be able to help them when they need it.
This will extend to the workplace, unless you limit yourself to only working at small companies. At medium and large companies you will almost certainly find coworkers who are on the opposite side from you on many issues that are important to you. Take Google. About 1/3 of the Congressional donations from Google employees and PACs go to Republicans. Even Ted Cruz and Lamar Smith get donations from them. Are you going to scratch Google off your list of potential employers because you might find yourself having to interact civilly with a Ted Cruz supporter? Similar for Apple, Amazon, and Microsoft (although the distribution is different...from Apple about 1/7th or so goes to Republicans, and it is around 40% or so from Amazon and Microsoft).
[1] With exceptions for those religious or political systems that do not allow one to do science, of course.