How to deal with them in early game: If one is chasing you, run past several peaceful creatures. The Dilos sometimes attack those instead of you. Another way to deal with them is to curve around them while they spit at you. Hit them with an axe or pickaxe while they use their melee attacks.
I once had a Dilo named Sally. I got attacked by an Alpha Raptor, totally got shredded, but was close to my base. Ran back to my body to find the Alpha eating Sally while she was lying on top of my body trying to protect me...RIP Sally...
Annoying at first when you are low lvl, but after you tame one they become quite useful. My fave dino was Lord Of The Spit, a dilo. We went to the redwood forest. There we met a dire bear, me, knowing nothing about them, and it just wandering around peacefully eating berries, thought that it was friendly. What a mistake that was. R.I.P Lord Of The Spit. I WILL avenge him. All dire bears prepare. Once I complete my dilo army in honor of Spit, I will come for you and wipe you all out. And for the bear who killed Spit. I know how you look like, your level, your name, and where you are. Beware I am coming.
You will encounter these guys. It’s impossible to not see them at least once in the few days after you start the game. If you’re like me and want to avoid them, listen. I mean literally. They make a sort of chittering noise, very different from dodos. Listening to the world around me has saved my butt too many times.
If you want to fight one, wait until you have an axe and have upped your health and damage some. They’re easy kills if you sprint at em from behind and spam the axe. If you see them flash their frill, get to the side. When they flash the frill it means they’re going to spit.
Similar strategy for taming, but instead of an axe use a club. Toss some raw meat into their inventory and keep some narco berries on hand juuuust in case. They tame very quick.
At high levels they are amazing defenders and distractors, though I’d use carbonemys for distracting. They’re also very moveable thanks to their size.