20 ah is the capacity of the battery. That doesn't really matter.
What matters is the motor current or how many watts the motor will take.
If the motor is limited to 20A, then 12ga will be fine. It will barely get warm. I've run 50A with 12ga.
Using heavier wire is OK, but probably unnecessary.