Preheat oven to 375°F (190°C) and line baking sheets with parchment paper.
In a separate bowl, whisk together all-purpose flour, baking soda, and salt.
In the bowl of a stand mixer with the paddle attachment (or use a hand mixer), cream butter, brown sugar, and white sugar on medium speed until light and fluffy.
Scrape the sides of the bowl, then beat in the egg, vanilla extract, and sourdough discard on low speed until combined.
Slowly mix in the dry ingredients until just combined. Don’t overmix.
Stir in oats and chocolate chips using a wooden spoon or spatula.
Use a cookie scoop (about 2 tbsp or 40g) to portion dough onto parchment-lined baking sheets, spacing about 2 inches apart.
Bake for 10–12 minutes, until edges are golden brown.
Let cookies rest on the cookie sheet for 2 minutes as they will continue to set before transferring to a wire rack to cool.
Store in an air-tight container for 3–4 days or freeze for later.