What is the difference between Staples and Pegs?

Staples are made of metal and are much easier to use in hard, compacted soil. The advantage of pegs is that they are non-corrosive and are reusable.