: compare <object>
COMPARE compares two objects in your inventory. If both objects are weapons,
it will report the one with the better average damage. If both objects are
armor, it will report the one with the higher level. It does not take modifiers,
such as damroll or saves vs. spell; however, these modifiers are taken into
account when the level of the item is set.
COMPARE with one argument compares an object in your inventory to the object
you are currently wearing or wielding of the same type.