Pillagers and Illusioners don't attack you when they have something other then their default weapons. I saw another post about this but it was resolved and considered works as intended (MC-139433). Why is this intended skeletons can use swords, axes, and other melee weapons. I see no reason this is intended? Whats the thinking here this seems like a bug?
Don't intentionally make duplicates.
This is not a forum, for questions like this, go to the MoJIRA subreddit.