First one is non-symmetric, it connects forces in deformed stressed configuration to underfomed geometry+mass (initially known volumes, areas, densities), and it is energetically conjugate(* to the motion gradient (commonly mistakenly called “deformation gradient”, despite comprising of rigid rotations). First (sometimes its transpose) is also known as “nominal stress” and “engineering stress”.
[ I denote it as bold T, see picture ]
Second one is symmetric, it connects loads in initial undeformed configuration to initial mass+geometry, and it’s conjugate(* to the right Cauchy–Green deformation tensor (and thus to the Cauchy–Green–Venant measure of deformation).
The first is simplier when you use just motion gradient and is more universal, but the second is simplier when you prefer right Cauchy–Green deformation and its offsprings.
There’s also popular Cauchy stress, which relates forces in deformed configuration to deformed geometry+mass.
*) “energetically conjugate” means that their product is energy, here: elastic (potential) energy per unit of volume
> But which one [is] preferred in computation mechanics?
It depends on what do you compute (and how). In fluid mechanics, for example, both of them are likely fully useless, because you don’t have (don’t care for) known stiff initial configuration.
Personally, I prefer first Piola–Kirchhoff stress, mostly because I prefer to use motion gradient. But Green’s deformation is much more popular, especially for little displacements (they are larger in rods/beams, and are much smaller for shells and three-dimensional bodies — that’s why motion gradient is popular for one-dimensional modelling). And there’re many examples, they are easily googlable. For second tensor https://adtzlr.github.io/ttb/example_stvenantkirchhoff.html. Plus for sure the source code of Code_Aster does worth diving into it https://bitbucket.org/code_aster/codeaster-src/src
Tetravalent stiffness “ceiiinosssttuv” tensor of nonpolar (momentless) continuum is constant in its symmetry no matter which measure of stress you use. When you choose just motion gradient, then it’s second derivative of elastic energy per volume unit by nabla location vector (transposed motion gradient) and then by transpose of it (which is motion gradient). That’s the same as double derivation by Green’s deformation.
In the question about what’s the first — chicken (deformation) or egg (stress), the answer is — none of them, but the instinct of reproductivity (energy)