Are microchips implanted in animals harmful?

The microchip is implanted in the dog's ear and is only the size of a grain of rice. It has no effect on the body or life expectancy, but it will hurt a little when it is implanted.

The last time I read a report on the Internet, a licensed dog was killed by the law enforcement team because they didn't have a scanner for microchips. I don't think it's a good idea to microchip your dog, so why let your dog live with the wrong crime