AI's disruption of the software sector has also roiled private credit markets. Both spaces may be overreacting.