It is the basis for "making a decision"...
...I know you understand what I mean, and that wasn't it. Any human, as stupid as it could be - without being told - will realize at one point that everybody does what he or she used to do, the only difference being that they are on the other side of the road. And that it is easier to switch side rather than fight his or her way.
Another example is learning an unknown language. You can put any human in an environment where everybody speaks another language than his or hers, and this human will learn it, without anyone teaching it to him. Just observing and noticing patterns. It's a question of time, but it will happen.
There is a joke going around where
AI is defined as a series of nested IF...ELSE statements. That is not AI because the program does exactly what it was initially told to do. But with the computing power that is available today, a program may evaluate so many conditional statements that for us mere humans it looks like intelligence. But it still isn't, it just mimics it.
But when you will have a machine with AI, it may make decisions completely unforeseen by the programmer. You can see that as owning a dog. If the dog does something that is unwanted, who is responsible? The breeder, the trainer, the owner or the dog itself? There may not be a single answer that fit all possible cases.