A dog is running parallel with the ocean waves.
The pet is eating.
A dog or per can either be running or eating.
dog  running parallel with the ocean waves cannot be eating
A pet could mean any type of pet not just a dog.