2 Birth certificates

Hi, For my 2 years old son i had a hand written birth certificate issued by gram panchayat, where registration number is written "20". I applied for a passport and they said handwritten is not accepted , then i applied for a digital birth certificate and i get that with a long digital registration number with QR code also there. Now Passport office is saying this registration number should have matched with hand written registration number which was just 20. My question is- a computerized digital certificate's registration number how will match with hand written one which was just 20. All the facts in both the certificates are same with exact same date of birth or any name address and everything. The passport office is asking me to produce one cancellation certificate for one certificate, i need suggestions, if all the facts are same then how I shall cancell the hand written certificate, i don't think a digitally generated certificate will match with the registration number of handwritten one which was just 20