When viewing a property which is a custom resource by clicking on its instance as a property of another object in the debugger, there appear to be two instances of each member in the inspector, and they are not the same. In the case in the video, I had changed the Inventory instance's batteries property from 0 to 1 earlier in the code. This change is represented by one of the instances and not the other. This is the entirety of the Inventory script:
class_name Inventory
extends Resource
signal items_changed(inventory: Inventory)
@export var batteries := 0:
set(new_value):
batteries = new_value
items_changed.emit(self)
If you need to see more, I'll be happy to share my project or a minimal reproduction project.