Sell first, ask questions later. That was the stock market’s response to last week’s new artificial-intelligence tools that challenge the software, legal data and media industries. But bargain hunters seeking victims of indiscriminate selling may need patience waiting for a recovery.