Such a wrong take. Decision trees are nothing more than if statements. Fancier versions of those (random forests) are consistently near SOTA algorithms like neural networks (and beat them on tabular datasets frequently). AI can be just a shit ton of if/else statements.