title: Find different pair in a list by python
body: <p>I have a list and I want to find different pair in list.
  I implement a function --> <strong>different()</strong></p>
  
  <pre><code>import numpy as np
  
  
  def different(array):
      res = []
      for (x1, y1), (x2, y2) in array:
          if (x1, y1) != (x2, y2):
              res.append([(x1, y1), (x2, y2)])
      return res
  
  
  a = np.array([[[1, 2], [3, 4]],
                [[1, 2], [1, 2]],
                [[7, 9], [6, 3]],
                [[3, 3], [3, 3]]])
  
  out = different(a)  # get [[(1, 2), (3, 4)],
                      #      [(7, 9), (6, 3)]]
  </code></pre>
  
  <p>Is there any other better way to do it?
  I want to improve my function <strong>different</strong>.
  List size may be greater than 100,000.</p>