@jon_d_doe He should just face the consequences at the moment and avoid further damage.
The girl can blackmail him in the future so it's better he confess to his friend and face whatever comes out of it now that what will come out of it tomorrow.
Either way, the truth must come out oneday