Collisions between electrostatically confined linear polar molecules