When coin selection considers your own unconfirmed change, it should track the depth and only try with inputs that are have unconfirmed chains shorter than 25, before finally trying all– at a minimum.
Otherwise we might create a long chain of unconfirmed which we could otherwise avoid.