Charlie McAvoy scored the overtime winner and Jeremy Swayman stopped 14 of 15 shots as the Boston Bruins defeated the Los Angeles Kings 2-1.