The key question you have to ask yourself is do you get more car for your money with the a5 or cla. I know you mentioned the engine/gearbox choice and option pack you could have for the a4 but I would say go with the car that's best value for money. Including spec, better mechanicals etc.
Cheers
Steve