Trac is primarily an issue tracking and project management tool that integrates with version control systems, whereas Mercurial SCM is a distributed version control system focused on repository management and collaboration. Trac excels in project management features, while Mercurial offers robust version control capabilities.