Realizing Bose-Einstein condensation in a Mexican-hat-like potential