Comparison of molecular and gravitational three-body collisions