Are the engines of the Ford Lynx and Mazda 323 (the latest DOHC sold locally) the same?

Some say yes, some say no.

Visually, the cylinder head covers seems different. The Lynx seems to have sharp corners while the 323 has more rounded corners.

How about the internals? HP and torque ratings?