While the party fractures over Middle East policy, it is ignoring the threat posed by AI and social media