I was under the impression that they went back to the car, and the road out appeared to go through the fire. The recommendation to go the other way would have meant hiking out, which, even though it was what they ended up doing, was not obviously the best choice early on?
They could have driven the other way, the way they finally chose to drive, parked and started to walk to Red's Meadow and the other car. I agree they probably had reasons for the choice like not wanting to lose car 1 in the fire or get stuck up a mountain on foot without the car if the fire reached them. But they did get clear advice to go the other way early on and chose to ignore it.