Mobs equipping items from dispensers can despawn.
- Summon a monster which can pick up loot
- Place a dispenser facing it and put for example a carved pumpkin inside
- Activate the dispenser
→ The monster is wearing the pumpkin
- Teleport away and then back to make sure it could despawn
→ The monster despawned