Actually, all 3 groups fight Kefka. When you get there, all 12 party members will come together, and you will choose which 4 will fight first, then the order in which they'll be replaced if they die (you'll understand more when you get there.)