Whisk the 2½ cups flour, 1 teaspoon kosher salt, and 1 tablespoon granulated sugar in a large mixing bowl. Cut in the cold cubed butter until you have a mix of pea-size and slightly larger flat pieces, with some sandy bits. Sprinkle in 6 tablespoons of ice water and toss with a fork, adding more water 1 tablespoon at a time only until the dough holds when you squeeze it. Divide it in half, pat each half into a 1-inch-thick disc, wrap, and refrigerate for at least 30 minutes (or up to 2 days). That chill is not included in the 45-minute prep time or in the 4-hour 50-minute total.
When you are ready to assemble the pie, heat the oven to 425°F with a rack in the lower third. Set a rimmed sheet pan on that rack so it preheats with the oven.
Peel, core, and slice the apples ¼ inch thick (about 8 cups). In a Dutch oven or another wide, heavy pot, toss them with the granulated sugar, brown sugar, ¼ cup flour, cinnamon, nutmeg, ¼ teaspoon kosher salt, and lemon juice until evenly coated. Cook over medium heat, stirring often, until the apples look just slightly softened at the edges and the juices turn glossy and syrupy, 5 to 8 minutes. They should still hold their shape. Scrape the filling onto a rimmed pan or into a shallow bowl and let it cool until it is no longer steaming, about 15 minutes. That short cool is not included in the 45-minute prep.
On a lightly floured surface, roll one dough disc into a 12-inch circle. Ease it into a 9-inch pie plate without stretching, and let the excess hang over the rim. Spoon in the cooled filling, including the syrupy juices, and level it into a gentle mound. Dot the top with the 2 tablespoons of butter pieces.
Roll the second disc into another 12-inch circle and drape it over the apples. Trim the overhang to about ¾ inch, fold the edges under so they sit on the rim, and crimp to seal. Cut 4 or 5 slits in the top, including at least one near the center. Beat the egg with the milk and brush it over the top crust, then sprinkle with the coarse sugar, if using. If the dough feels soft, refrigerate the assembled pie for 10 to 15 minutes; that optional chill is not included in the times.
Set the pie on the preheated sheet pan. Bake at 425°F for 20 minutes, then leave the pie in the oven and reduce the temperature to 375°F. Continue baking until the crust is deeply golden brown and the filling is actively bubbling in the center vents, 40 to 45 minutes more (about 65 minutes total in the oven). If the edges brown too quickly, use a pie crust shield or loosely tent the rim with foil. Bubbles only at the outer edge are not enough; the center needs to bubble so the flour can thicken the juices.
Move the pie to a wire cooling rack and let it cool for at least 3 hours before cutting. Those 3 hours are included in the 4-hour 50-minute total as a cooling period.