The build-versus-buy debate gets an AI twist