When you say the same, do you mean the same name (only one word apart) or the contents of the claims are exactly the same?
First of all, defining the identity of patents means that the contents of the claims are consistent.
It is allowed to apply for a patent for invention and a patent for utility model at the same time for the same technical scheme, but only one of them can be officially authorized in the end.
If there are two utility model patents with the same claims, there may be an "abnormal application".
Now, I can only think of the above situations. If you want to get the details of what you said, you need to know the details of the two patents you said.