There is a third option, neither buy nor build. There are piles of good free ones out there.
For example:
Rolling your own bug tracker for any use other than learning is not a good use of time.
Other links:
- Three free bug-tracking tools
- Comparison of issue tracking systems