Dermatologists and stylists break down the best ingredients—and what to skip—to keep your hair happy.