Pantoprazole or nexium?

Was diagnosed with gastritis and I have both nexium and pantoprazole which would be more effect? 

The Doctor didn't give you one to take, most  people with gastritis has to take twice a day a month or sometimes two months ?

Yes I was given nexium by my gastro and pantoprazole with my regular doctor 

I use the pantoprazole and it helps me but it depends on the person.

I would take the one the gastro gave you as he knows more about gastritis.