Preheat oven to 350°F (175°C) and generously grease a 9x5-inch loaf pan with baking spray or butter. Optionally line with parchment paper for easy removal.
Shred 2 medium zucchini using the large holes of a box grater. Place in a kitchen towel and squeeze firmly to remove excess moisture until damp but not dripping.
In a medium bowl, whisk together flour, cocoa powder, baking soda, baking powder, salt, and cinnamon. Add espresso powder if using.
In a large bowl, whisk eggs, granulated sugar, and brown sugar until pale and slightly thickened. Add oil and vanilla and whisk until glossy.
Stir the squeezed zucchini into the wet mixture until evenly distributed.
Pour dry ingredients into wet and fold gently with a spatula until no flour streaks remain. Do not overmix.
Reserve 2 tablespoons of chocolate chips for topping. Fold the remaining chips into the batter with a few gentle strokes.
Scrape batter into prepared pan, spread evenly, and sprinkle reserved chocolate chips on top. Tap pan on the counter to release air bubbles.
Bake on center rack for 55-65 minutes until a toothpick inserted in the center comes out with moist crumbs, not wet batter.
Cool in the pan for 15 minutes, then transfer to a wire rack to cool completely for at least 45 minutes before slicing.