Oil held a five-day gain as traders weighed escalating geopolitical tensions against swelling inventories.