PEX pipe is not only cheaper than copper but more durable too. PEX is immune to corrosion and mineral build-up, and it's not affected by electrolysis, which can cause small pinhole leaks in copper piping. Copper pipes can last anywhere from six months to the life of a building.