2004 nissan altima

Is it cheaper to replace The head gasket or just re pop lace the engine