The trick here is to start with the best apples—varieties that have crisp, firm flesh. Softer varieties will get mushy or even fall apart when baked into a pie.