US stocks finished lower, capping a day of whiplash that saw the Nasdaq 100 Index briefly enter bear-market territory before retracing most of its losses, as dip buyers looked past the biggest concerns clouding the outlook for artificial intelligence.