In general 12 AWG must be better than 18 AWG because of lower resistance in high current.
You also need to know what battery, what ESC and what is the motor spec. 12AWG may be more than enough in some cases. e.g. if you use white pig......18 AWG could be okay lar.