Best way to kill them is to use a pike a walk backwards while hitting their face. Your backwards walk speed is faster than their movement speed so you will never get hit.

More Titanoboa Encountering Tips