Selection of hexagonal buckling patterns by the elastic Rayleigh-Taylor instability