Do you have an example of an NP hard problem a person would have to solve on the process of optimizing for self interest?
A market optimizes for whatever the participant wants, profit is simply a mechanism by which the overall market performs price discovery. You always have a choice to not optimize for profit, I make trades all the time where profit is not my goal.
Just choosing a job and being kindly allowed a small local marketplace is not agency.
Hayek's point would obviously violate the church-turing hypothesis (unless there's some hitherto unknown quantum-esque computation process going on in the human brain which I doubt, or you're mischaracterizing his point, I'm reading his book as we speak) but I believe that a sufficiently advanced machine capable of outperforming the market given equatable conditions (same information availability and processing) would probably perform those functions with less resource efficiency, not to mention the resources to build a redundant machine we don't need. If you build one that is better by using more energy and resources to scale its capabilities up, well now you're not optimizing resources on the whole because you're dedicating some for this machine to exist and operate, the resources to build the machine and maintain operation are then distributed suboptimally.
If a machine that uses the same net resources for this task and with equal capabilities could outperform the marketplace at efficiently distributing resources, and there are NP hard problems in personal finance, wouldn't that mean P=NP?