The key is to maintain a near-constant intensity. That may be possible by increasing speed on the sections that ease off in angle, but I think it’ll be very difficult to do so on downhill sections.
I would say the consistency of the terrain trumps grade. So if there’s a less-steep hill that’s more consistent, I would use that one. Even better, use a treadmill; it’ll be both consistent and specific.