Oil is fungible. The EU can buy it from anyone, and the Russians need to sell it on the world markets to fund their war on Ukraine. Given that oil contracts are set up to optimize transportation and processing costs, the EU will pay a little more to buy from other suppliers and the Russians will get a little less selling to customers further away.
Russia owns the pipelines. They cannot get it from anywhere. The infrastructure is not there.