Balancing structural distortions via competing 4f and itinerant interactions: a case of polymorphism in magnetocaloric HoCo2