If your pet's health gets too low or its attacks aren't very effective against a certain combatant, you can always switch out your current pet with another companion on your team. Only pets that are considered active (i.e., those in your three Battle Pet Slots), may be switched in and out during the battle. Once the match is over, you can always change up your active pet team, which is useful if one of your pets is low on health or dead.
Learned this today: posted a comment, came back later to see if there was any feedback, reloaded the page: the page posted a copy of my comment. That was not what I wanted. I just wanted to check if my comment was posted and if there were some responses. I did not want to post a copy of my comment from 5 hours ago. And, a humble guess, I think the majority of the users are not expecting such behavior either.