As primary results trickle in, both parties are wrestling with what they stand for — and where they’re headed.