One should look at the job profile offered by both of the companies and should not look at package or company's brand name.
It is experience or exposure that pay in long run, so look at job profile and there is no harm to say to comapny 'A', if company 'B' is providing good job profile, working environment, package and overall growth opportunities in your career graph.