Choose an item to acquire.
a - a +0 pair of gloves of dexterity
b - the +0 pair of gloves "Nicvaoch" {Dex+4}
c - the +15 Maxwell's patent armour {-Tele *Silence rElec Will+ rCorr}
d - the +2 pair of gloves "Pemew" {rN+ Dex+4}
I think your suggestion to cut down on straight upgrades is a good one. (though an algorithm that did that might not know that “dex +4” is an upgrade to “of dexterity” unless there are special checks for different brands which might be annoying to maintain, at least maybe options b and d shouldn’t be paired together haha)