I've found that in team-based games, religion always goes to the player with most time invested in researching its corresponding tech. For example, if player A begins researching poly, player B decides to research poly 2 seconds later, and 2 other partners both decide to research poly 3-seconds...