How to replace a prefab of an Game Object with code?

I want to replace this prefab with another prefab while keeping its Overrides) with code during runtime