AI is simply an if/else statement in disguise, you didn’t know that?
The differences are not really that great most of the time. Quite often one type of logic in one type of ML network can be easily simulated in something like a generic transformer network and vice versa. Efficiency is typically the biggest constraint.