What makes Coke acidic?
If you look at the list of ingredients, you will find that Coca-Cola and many other brands contain phosphoric acid (food grade - don't worry). This is probably the dominant cause of acidity. Citric acid is another common component. Of course, the carbon dioxide is also acidic, but weakly, so there should be very little difference between carbonated and flat.