12V or 220V for energy efficiency?
Your hunch is correct. Voltage conversion, particularly from DC to AC, will cost due to conversion losses.
You are also correct that higher voltage reduces transmission losses. You can compensate for this at low voltages by reducing cable resistance by increasing the cable cross-sectional area.
There are many online calculators for this.

Figure 1. jCalc (picked at random) seems quite comprehensive.