Investors are about to wrap up an unusual week in the stock market, when surprisingly strong job gains for January and an easing annual rate of consumer-price inflation failed to erase jitters about artificial intelligence’s capacity to destroy industries.