Those two methods are not the same thing at all. In the first case, those transformation’s are done in os’ parent’s coordinate space. In the second case, in pandka’s coordinate space.
Remember that when the position is relative to the object, it’s scale also affects it. So I think you have a very high (or very low) scale set to one of your nodes so that you don’t notice the small difference.
Long story short, try a larger value than 10, in the second function call.
Thanks for your suggestion and explanation - great guess, it was the matter of scale (and my misunderstanding of relative position change ).
Now everything is clear