Amoxicillin & Penicillin

A

Ok so a few years ago I had tonsillitis and was given Penicillin to treat it by my doctor - it didn’t work and the only way for my tonsillitis to go was to ride it out, it was unbearable but at least I knew it would just go eventually.

I now have an ear infection (it is excruciating) and the doctor has given me Amoxicillin to treat it. I’m worried because, if Penicillin did not work for me, neither will Amoxicillin since it’s from the same family of antibiotics? Can anyone tell me the difference? The pain is unbearable and I just want it to go! Does it work like that?