Some major companies, ranging from big pharma to oil and gas names, lost out on the Dow’s rally this year.