Keystone XL Pipeline Question

Will it really cost less to build a pipeline dividing an entire country (Canada to the Gulf of Mexico) and endangering an aquifer than building a new local refinery close by fostering a regionalized distribution system that would directly benefit those producing it in the first place?