Such difference can well occur whenever there are some "ties" in the ordered probabilities. No problem. Both are correct Huffman codes.
There is no standard "tie-breaker" rule. And usually that doesn't matter. What matters is consistency: if the decoder must reconstruct the encoding tree, then both the encoder and then decoder must stick to some common (arbitrary but predetermined and deterministic) tie-breaker rule.
Another consideration is that the alternative codes, in spite of having the same average code length, will in general have different variance. Because one usually prefers smaller variances, one might want to use that as a criterion (see eg here , section 3). That, still might be insufficient to break all ties.