The Formation of Giant Planets and the Collisional Evolution of Planetesimals: Lessons Learned from the Solar System