The patent is still pending.

If his patent has been authorized during your patent application, your patent will be invalid.

But his patent was not completely hopeless before it was granted.

Look at your application documents. If your invention is different from his, you can also apply for a patent. Modify your application documents.

Or if your patent is more novel than his or earlier than his application, you can also declare his patent invalid after its publication.