It’s not the same. When you have a dog you use a leash and, if needed, you can restrain the mouth.
In this case you are not in control. And you can’t be. You are just a passenger. And you should have the same responsibility as a passenger in a train: none.