How do I equip an item to my main hand without opening my inventory?
It's not the same item again, it's the block they're looking at. If you for example have dirt somewhere in your inventory and press the "pick block" key (default is middle click) while looking at dirt, your currently selected item (preferably nothing) will be swapped with dirt.