How does the earth bring down a falling object's velocity to zero on contact ?

If the normal force on an object from a horizontal surface is equal to the weight of the object, the object could never be decelerated because the net force would go to zero as soon as it touches the surface as it would then keep moving into the surface at constant speed.