I just assumed that the Subaru FB25D and the FA24F were about 80% the same. After all you can purchase a Legacy or an Outback with either engine. Only the WRX and the Ascent can only be purchased with the FA24F. But, I suppose the question was naive.
The Hyundai Elantra and the Hyundai Elantra N have different bore and stroke. One is a long stroke design and the other engine is square.
2023 Hyundai Elantra
2.0L MPI Atkinson DOHC 16-valve Inline 4-cylinder
Displacement: 1,999 cc
Horsepower (HP): 147 @ 6200
Torque (lb.-ft.): 132 @ 4500
Bore & Stroke (mm): 81 x 97
2023 Hyundai Elantra N
2.0L turbocharged direct injected “Flat Power” 4-cylinder
Displacement: 1,998 cc
Horsepower (HP): 276 @ 5500 ~ 6000
Torque (lb.-ft.): 289 @ 2100~4700
Bore & Stroke (mm): 86 x 86