Evolution doesn't care at all, its just environment pressures and whatever organisms do within it. It can very well lead to some dead ends and sub-optimal long term choices.
There will come time when we will grok all this 100% and then can setup whatever we want (its just a bunch of molecules acting predictably), but we are very far from there and there is no point discussing this even for our grandchildren. We will have cyberpunk implants way sooner.