On the origin of the dichotomy of early-type galaxies: the role of dry mergers and active galactic nucleus feedback