The penetration on the Cenatur gun is too high so that the Centuar usually kills the Puma very fast. Only way would be to use Puma on max range but then again Puma has only 80 pen on max range which leads to bounced shots. The JP4 is the best answer, it just comes out when the Centaur comes and scales far better into late game than the Puma. In addition the JP4 is one of the best vetting units in game, able to hold back several tanks on its own.
Also The JP4 needs 4 shots to take the Centaur while the Puma needs 6, unless it's vet 3.