US stocks have seen volatile moves in the last handful of trading sessions, as strong earnings and massive AI spending pull investors in different directions.