A confluence of factors tempted a challenge, including the habit of Rep. Jill Barry to vote with Republicans against high-profile bills.