I looked at the gear ratios for both transmissions when considering the final axle ratio. Turns out that the M6 gears are very close to the A8 2-7 gears - withing 10% and for most of them within 5%. Here are my numbers: