Always buy local if you can. It has the lowest climate impact.
Even buying a less-green local product vs. a more eco-friendly import might have less climate impact due to resource extraction, production in areas with possibly less environmental protection regulations, and above all shipping.
Climate cost-benefit outweighs all other arguments for rational people.
The High Cost of Low Price