The following code produces different results using Table and ParallelTable. K and KK are supposed to give the same result since rule is just also applied to K inside the table. However, the part using K with ParallelTable remains unReplaced for both z and s. This is like a minimal working example and I want to use With. What is wrong here? I'm using V13.1.
a = 0.2;
K = s Sqrt[(Sin[a]^2 - z^2)^2 - 4 (z^2 - Sin[a]^2)];
rule = z -> z0 + 4;
KK = K /. rule;
Table[With[{x = ({KK, K /. rule} /. s -> 1)}, x], {z0, 1, 3, 1}]
({{22.87325863762602,22.87325863762602},{33.90158745011456,33.\ 90158745011456},{46.917922210598825,46.917922210598825}})
ParallelTable[With[{x = ({KK, K /. rule} /. s -> 1)}, x], {z0, 1, 3, 1}]
({{22.87325863762602,s \ Sqrt[(0.039469502998557456 -z^2)^2-4
(-0.039469502998557456+z^2)]},{33.90158745011456,s
Sqrt[(0.039469502998557456-z^2)^2-4 \ (-0.039469502998557456+z^2)]},{46.917922210598825,s \ Sqrt[(0.039469502998557456 -z^2)^2-4
(-0.039469502998557456`+z^2)]}})

