Software stocks have suffered a rude awakening amid fears that artificial intelligence (AI) will upend the industry. While the outlook is highly uncertain, the indiscriminate market response may be conflating structurally exposed software businesses with more durable companies.