Prepare the oven and pan. Preheat the oven to 375°F (190°C). Line a standard 12-cup muffin pan with paper liners.
Combine the dry ingredients. In a medium bowl, whisk together the flour, baking soda, salt, and sugar until evenly combined.
Mix the wet ingredients. In a separate large bowl, mash the bananas with a fork. Add the melted and slightly cooled butter, egg, and vanilla extract. Stir until well combined.
Combine the mixtures. Add the dry ingredients to the wet ingredients. Gently fold with a spatula until the flour is almost incorporated.
Fold in the chocolate. Add the chocolate chips or chopped chocolate and fold just until evenly distributed and no dry flour remains. Avoid overmixing. If desired, reserve a few chocolate chips from the measured amount for topping.
Fill the muffin cups. Divide the batter evenly among the 12 prepared liners. Sprinkle any reserved chocolate chips over the tops.
Bake. Bake for 17–20 minutes, until the tops are golden and a toothpick inserted into the center comes out clean or with a few moist crumbs. Avoid testing directly through a chocolate piece.
Cool. Let the muffins rest in the pan for about 5 minutes, then transfer to a wire rack. Serve slightly warm or allow to cool completely before storing.