Im not sure which is more important but heres an example that could be considered.
My gunnery has always been great. My ACM started at useless and improved slowly through the last year and a half.
From the first day i played i got kills. my first 2 weeks i achived i think close to 200 kills despite being crap at flying. In AH1 i could easily hit a straight and level target from 1k, and regularly get kills from 800yrds. when AH2 came out the gunnery was harder but i still find it easy to ping from 1k although its very hard to do damage over 500yrds.
Now that my ACM is well improved, i can avoid dying alot better, and get into a possition that means i dont have to shoot such long distances.
so, it would seem obvious that gunnery is more important to get kills than ACM if you are new to the game, yet ACM is the master key to not needing such good gunnery.
in conclusion:
Without a little bit of skill in each department you you wont ever be on the best pilots list, But, overall, in all skill catagories, Gunnery is the most important for getting kills, ACM is most important for staying alive.
essentially, they are both vital.