Reliance on artificial-intelligence tools degrades the abilities of physicians and software engineers, studies show.