Stocks go in opposite directions as AI shares slip and oil prices surge