Both men sought to align themselves with the state’s popular, term-limited governor, Republican Larry Hogan.