Hard one to call
Ultimately, it would be the handling dynamics that I would be most concerned
about, rather than the numbers unless you are doing 1/4 mileing etc.
S54 is a lighter engine & as it's going into a lighter car, the torque disadvantage of the S54
over the S38 that I personally percieve will not matter.
S54 = abundant parts & engines to a degree.
I would not entertain the S38 in this application, great as this engine is.
I tried to fight the fact that it's a "Boat anchor" for years.
An opinion is all it is

Cheers
Farrell