Mercy review – Chris Pratt takes on AI judge Rebecca Ferguson in ingenious sci-fi thriller