Competition between h/e and h/2e oscillations in a semiconductor Aharonov-Bohm interferometer