Which way is better for powering a very remote sensor in this case?
I would propose a third option. Consider running a higher DC voltage (voltage determined by regulator dropout and wire losses) through the 500m of wire and regulate down to 12v at the sensor end with a 7812 or similar. This keeps regulation at the sensor end, but allows you to run DC instead of AC.