In general equatorial bond is more stable, now select the stablest considering other factors
Due to the presence of both the OH groups at axial bond, the bonds are in same plane and now they participate in Hydrogen bonding. Due to which energy decreases and stability increases.