The dfference in behaviour between these two scenarios is related to this earlier thread:
Your second illustration, John, fits the criteria of the rules for single-stemmed chords that have moving notes within the tie chain. The first one does not, because the pitches of the untied notes are the same.
I will look into this in due course, but these kinds of involved things require time for investigation and careful examination of the rules used for calculating tie directions. When I have more information, I’ll share it.