With help from the artificial intelligence boom, communication services and technology stocks fueled the stock market’s rally for a second straight year in 2024. Meanwhile, it was a tough year for ...