Well, it looks like I may be wrong in this case, and Vaughan’s explanation is accurate. InDesign renders these two instances the same as Dorico does. I’d be inclined to trust InDesign as the “correct” rendering.
If that’s the case, and it’s intentional, sorry… and I learned something!
And of course you saw the feature request coming: ligature control in Paragraph Styles.