I opened up the latest snapshot in a superflat world in creative, I was building something and had a full invetory. I decided to give myself netherite leggings because I wanted to apply the new swift sneak enchantment so I could move faster. I didn't have enough room in my inventory to pick up the leggings, enchanted book, and anvil all at once, so I gave myself the enchanted book and anvil and threw the leggings on the ground, but somehow I picked up the leggings. I went to see where they were in my inventory, but they were nowhere to be seen, they weren't even automatically equipped. I tested it out a few times and can confirm that you can pick up stuff even if you have a full invetory.
Thank you for your report!
We're tracking this issue in MC-8409, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki