But, Twilight's special ability is magic, so I don't know how she thinks she would be showing off to challenge Trixie.

I don't get why everyone hated her so much, I mean, it's her talent to show off. That's her cutie mark and special ability, basically her job.