tag @n[type=item,nbt={Item:{count:1}},distance=..10,nbt=!{Item:{components:{"minecraft:custom_data":{nodupe:tag}}}}] add dupe
execute at @e[tag=dupe,limit=1] run summon item ~ ~ ~ {Item:{id:"minecraft:stick",count:1},Tags:[dupeit]}
data modify entity @e[tag=dupeit,limit=1] Item.components merge from entity @e[tag=dupe,limit=1] Item.components
data modify entity @e[tag=dupeit,limit=1] Item merge from entity @e[tag=dupe,limit=1] Item
execute as @e[tag=dupeit] run data remove entity @s Item.components."minecraft:enchantments"
execute as @e[tag=dupeit] run data remove entity @s Item.components."minecraft:repair_cost"
execute as @e[tag=dupeit] run data remove entity @s Item.components."minecraft:container"
execute as @e[tag=dupeit] run data remove entity @s Item.components."minecraft:bundle_contents"
execute at @e[tag=dupe] run playsound minecraft:entity.enderman.teleport player @a ~ ~ ~ 1 1.2
tag @e remove dupe
tag @e remove dupeit