Updated

One night after beating him to win the 400-meter individual medley at the U.S. Olympic trials, Ryan Lochte edged Michael Phelps to the wall Tuesday in their semifinal heat for the men's 200-meter freestyle.

Lochte touched in 1 minute, 46.25 seconds -- just .02 seconds faster than Phelps, who won the event four years ago for one of his record-setting eight gold medals in Beijing.

The final of the event is Wednesday.

Lochte has had Phelps' number lately, winning five gold medals and both of their head-to-head races during last year's world championships.

Also Tuesday, Brendan Hansen won the men's 100-meter breaststroke at 59.68 seconds to make his third Olympic team. Hansen, who came out of retirement last year, touched about a half-second faster than cancer survivor Eric Shanteau, the American record holder.

Allison Schmitt won the women's 400-meter freestyle at 4 minutes, 2.84 seconds -- about 1 1/2 seconds faster than Chloe Sutton as both earned spots on the U.S. team for London.

Dana Vollmer captured the women's 100-meter fly at 56.50 seconds after setting the American record on Monday. She finished 1.07 seconds faster than Claire Donahue while Natalie Coughlin, who won six medals in Beijing, came in seventh and failed to qualify for the event.

Coughlin barely qualified for the final of the women's 100-meter backstroke, an event she has won in each of the last two Olympics, by posting the seventh fastest time in the semis.