I can imagine Hera doing either. Covering the fleet's retreat (the Ghost had been covering the flagship really tightly up until we lost sight of the freighter once the Death Star arrived in system). Heading back in an effort to track down Leia. I can even see her making a run down to Scarrif in an effort to pick up survivors from Rogue One and Blue Group.
In all of these she would be either one step behind the Heroes of Yavin, or one step too far ahead of them forcing her and the Ghost to be someplace else when the Death Star arrived at Yavin.
In all of these she would be either one step behind the Heroes of Yavin, or one step too far ahead of them forcing her and the Ghost to be someplace else when the Death Star arrived at Yavin.