For baking in muffins, tart and firm apple varieties such as Granny Smith, Honeycrisp, or Braeburn work best, as they hold their shape and provide a nice contrast to the softness of the baked muffins.