Yes, it doesn't write to both in practice. Additionally the docs currently state:

"Stores arbitrary data on a Node instance. This is not stored with the DOM node."

http://yuilibrary.com/yui/docs/api/classes/Node.html#method_setData