Prep the pan and the zucchini. Heat the oven to 350°F (175°C). Grease a 9x5-inch loaf pan and line it with parchment paper. Grate the zucchini, then squeeze it in a clean towel to remove extra water.
Whisk the dry ingredients. In a large bowl, whisk the flour, granulated sugar, brown sugar, cinnamon, nutmeg, baking soda, baking powder, and salt until well mixed.
Whisk the wet ingredients. In a medium bowl, whisk the eggs, oil, and vanilla until smooth and a little frothy.
Fold the batter together. Pour the wet mix into the dry mix. Stir gently until just combined, then fold in the zucchini, walnuts, and chocolate chips, if using. Do not overmix.
Pour into the loaf pan. Scrape the batter into the prepared pan and smooth the top with a spatula.
Bake until golden. Bake for 50 to 60 minutes, until the top is golden and a toothpick in the center comes out clean or with a few moist crumbs.
Cool, then slice. Let the loaf cool in the pan for 10 minutes. Lift it out, cool fully on a wire rack, then slice with a serrated knife.