Auctions versus Posted Prices in Online Markets