The game DOES differentiate between guns outside and those inside a tank.
AAMG's cannot fire if the tank is "buttoned" - these MGs are class 4 "Flak". An "Internal" co-axial MG will be class 5 and can fire if tank buttoned up.
I am pretty sure the game DOES choose the most effective ammunition...