When having “auto-compare” enabled in the settings, and hovering from one item in the inventory (which slot has an item to compare to) to another item which slot is empty, it will compare the item with the former slot.
In the screenshot, I hovered from the helmet to the catalyst. It still shows the equipped helmet, since the off-hand slot is empty.