Machine learning is more for situations where the software has to discover the best way to operate because the rules aren't well established.
Or the machine needs to look at messy input data and recognise what the situation is so it can apply the more structured decision processes. You can't feed a radar image to a bunch of if/elif/elif/else statements. That pattern recognition is fallible, but so are humans. Exciting times!