That's one of the ideas behind fuzzy logic and quantum computing, creating computers that can make decisions in a non-flowchart method, weighing criteria based on a host of factors and assigning value and making decisions (not following a flow chart) based on that. Of course, we know from the Terminator movies that this is what will eventually be our downfall when Skynet becomes self-aware, but still, interesting idea.
I use to be very engaged in the world of competitive CHESS as a game. I followed with interest the efforts of scientists and computer programmers to design and build a chess program that could outplay a World Champion.
Eventually, this was accomplished even though it was said with confidence for years it could never be done.
What a chess program actually does is amazingly simple, but, in a complex process of heuristic "decisions" amounts to a constant
"weighting" of this vs that scenarios.
A value system allows each step to "weight" by a certain amount a given "decision" for a move.
The ultimate value must never allow the "death" (checkmate) to follow.
Are these actual CHOICES being made by the machine (software program)?
I would proffer the comment that the ultimate value in life is to avoid checkmate (demise) as long as possible by weighting each move we make vis a vis alternatives.
Where it gets hairy is in our INABILITY to correctly or completely evaluate this behavior against that behavior.
BY OUR VERY IMPERFECTION and INABILITY we seemingly inject chaos into the heuristic programming OF weighting.
I suggest this may well be what appears in everyday life as DECISION MAKING FREE WILL.
In other words: What is "Free" is really inability to correctly assign weight. Thus, an arbitrary "decision".