Why does the name printed on the pill differ from the branded one?

That’s because it will be a breach of copyright if the companies who manufacture generic pills use the brand-name on their pills. The ingredients in both generic and brand-name drugs are the same.