AI is a broad family of statistical and simulation algorithms.
They don’t replace algorithms, they are algorithms very powerful for some cases. For other cases they are less powerful, or overkill and they shouldn’t be used. But there is no dichotomy, as one (AI) is part of the other (algorithms)