In 2024, the S&P 500 surged more than 20 percent for the second straight year. Some stocks of local interest did even better—but not all.