I didn't know that CPUs do branch prediction until Spectre, I'm work in the steel construction industry so my knowledge of the works of CPUs is limited.
Anyway, I immediately though of this concept you've described: Artificial Intelligence is an abstract imagine, once implemented it's just "branch prediction", or some such.