US stocks posted their strongest quarterly gain since Q4 2019 as artificial intelligence earnings beats dominated market narrative....