Stocks were mixed by midday Thursday as a rally in energy stocks offset a selloff in the health care sector.