The primary is crucial in heavily Democratic Massachusetts, and the winner will be expected to prevail in November's general election.