Stocks mostly rally but oil slides