Hello dear friend @gwajnberg, the alternatives that have emerged for the identification are the microchips that are implanted in the animal and a follow-up is maintained through software, as for the dehorning is the use of caustic substances, which tends to be less painful but should be applied carefully so that it affects some other part of the animal's body.
Those are the alternatives that I have seen that have been used in my geographical region, but if the animal is allowed to grow and then it is decided to remove the horns it is more difficult and it can be more painful for the animal.
So long, have a great week.
RE: Identification and dehorned practices in bovine animals