Massive Compact Galaxies: A Case Study of the Diversity of Evolutionary Pathways in Cosmological Simulations