Assessing the pros and cons of AI for cybersecurity