US stocks close mixed as upbeat earnings offset AI concerns