The DS and DSi do not take the exact same games. While they share many titles, the DSi has a wider library including games designed specifically for it.
Here's why:
Summary:
If you want the largest game library, choose DSi. For a budget option, the original DS may be more affordable.