The software sector has suffered a roughly $2 trillion wipeout due to fears of disruption by artificial-intelligence technology. Analysts at J.P. Morgan think that’s a buying opportunity—and they have ...