Begin by creaming together the softened butter with the granulated sugar and brown sugar until well combined, being careful not to overmix.
Incorporate the room temperature eggs and one to two teaspoons of vanilla into the mixture.
If you're using it, add the sourdough discard and mix until the texture resembles wet sand.
Next, add the salt, cornstarch, baking soda, and all-purpose flour all at once, mixing until just combined with some flour still visible.
Fold in the semi-sweet chocolate chips until everything is fully mixed.
Shape the dough into balls, each about three to four tablespoons in size, and place them in the freezer.
When you're ready to bake, preheat your oven to 375 degrees Fahrenheit.
Bake the cookies for 13 to 15 minutes, adjusting the time based on your preference for crispy edges.
