The attorney general’s race is one of the most expensive and competitive races on the ballot in North Carolina this year.