Healthcare stocks experienced a challenging year in 2024, lagging behind high-growth sectors like tech and AI.