I learned this handy-dandy trick somewhere along the path and it has made getting the pit out of the avocado so much easier.
Split avocado lengthwise and pull apart.
With a sharp knife, confidently thwack the pit right in the middle. (I say confidently because if you half ass your thwack, it won’t work)
Lift up on the knife and the pit should slide right out of the avocado.