Yes, generic pills are better, because they are the same thing for a fraction of the cost. If a generic and a brand name were put next to each other, often you could not tell which is the brand name and which is the generic. It is better to buy the generic and save money for other things.
As long as generic pills are manufactured as safely as their brand name counterparts, then generics are the better option. Brand name pills are only the product of the originating firms medicine. When these drugs have met a certain age, they can then be produced by other firms, creating generics. This helps drive down the price of pharmaceuticals.