4.7 compared to 5.2

I can pick up a 4.7L that has some issues with water getting into the crankcase due to a blown head gasket for free. What are the differences between a 2002 4.7 and a 1998 5.2?

The engine still runs with good oil pressure but has a nasty ticking coming from one of the tappets.

Jack