Republicans find more success in Democratic strongholds like Maryland and Massachusetts when they run moderates who appeal to voters in both parties