Flying offline I escorted Avengers to a Japanese carrier and they bombed it with bombs.
I then flew a bombing mission in an Avenger to the same carrier, and chose torpedoes for the loadout.
I flew with wing leveller on, but my AIs got down low and torpedoed the carrier. What I expected happened.
The problem occurs offline and online because you cannot set the loadout for the secondary aircraft, and the exe will use the "bomb" loadout.
Hence the need for the bodge.