Preheat and Prepare Pans: Preheat the oven to 325°F and grease two glass loaf pans.
Prepare the Zucchini: Grate the zucchini using a box grater. Measure out 2 cups and place in a strainer over a bowl. Gently massage the zucchini, then let it sit for 5-10 minutes.
Combine Dry Ingredients: In a medium mixing bowl, whisk together the flour, salt, baking soda, baking powder, and cinnamon.
Combine Wet Ingredients: In a large mixing bowl, beat the eggs, oil, white sugar, brown sugar, and vanilla extract until creamy and smooth.
Add Sourdough Discard: Add the sourdough discard to the wet ingredients and whisk until the mixture is uniform in color and texture.
Mix Dry and Wet Ingredients: Gradually add the dry ingredients to the wet ingredients, about a cup at a time, stirring to incorporate after each addition until no dry flour remains.
Squeeze Zucchini: Use your hands to squeeze out the excess moisture from the zucchini. Aim for at least ¼ cup but no more than ½ cup of liquid. Discard the excess liquid. If there is more than ½ cup, discard ½ cup and pour the remaining liquid into the batter.
Fold in Zucchini: Fold the squeezed zucchini into the batter using a silicone spatula.
Fill Loaf Pans: Evenly distribute the batter between the two prepared loaf pans.
Bake: Bake for 55-75 minutes, depending on your oven. Use a cake tester or butter knife to check for doneness; if it comes out clean when inserted into the center, the loaf is done. If it comes out with batter stuck to it, continue baking until cooked through.