Democrats fought over age and ideology, while Republicans tested the value of President Donald Trump’s endorsement.