US stocks reverse early losses to end higher on Wednesday despite Alphabet's drop. Investors shift to other firms with strong outlooks. Nvidia gains.