Since you don't want to shift the front gear while under pressure I try to shift it first before a big hill. But planning ahead is the only reason to pick one or the other of your overlapping combinations.
Here's a tool to visualize gear ratios that I found interesting https://mike-sherman.github.io/shift/