These are two good itineraries - Flåm and Geiranger are two iconic deep fjords. Immediately, second option with Stavanger and Trondheim and another deep fjord to Olden is the best itinerary, but in August there is no midnight sun - there is in June - Cruising Arctic circle in August doesn’t make sense. If you want to experience the midnight sun, itinerary one is the way to go. In option one Ålesund is also a nice coastal city.
Both Haugesund and Molde are less interesting ports.