They look equivalent, but they are not, since the entropy difference between 4 and 5 is likely to be higher than the entropy difference between 7 and 8.
If we keep the objective of a total length of 12, the first choice is the best one.