If a technology existed that reduced the cost of producing a critical thing (think food, housing, medical care) down to near zero, however, it made the humans currently building the thing redundant, should we build it? Would it be okay to use the hyper-optimization power of Capitalism to build such a technology faster?
Before someone yells at me about this not being the current situation, I think that is the endgame of most of this AI development and in fact the endgame is even more comforting: If it takes 10 construction workers at $60,000/annum to build one home, I can forsee the descendants of current AI tech enabling 10 construction workers at $150,000/annum building 5 homes in the same time with an even larger profit margin for the corporation involved.
But as a clear moral quandary, I think the Pope should consider the first situation.