A Utah county commissioner said a large data center project played a role in his defeat in this week’s Republican primary.