I suppose, at least I hope, you two have discussed why you feel this is necessary and each understand why the other feels there is no way to compromise. If not, or if it’s a one sided decision, then you can’t remain friends, because one will be the perceived victim. That makes it harder on the kidlet.
Try to keep communicating all the way through the ordeal. You don’t have to be vindictive or lay guilt trips, but be honest, or you’ll be consumed by resentment and that will become hate. Unhealthy, at best.
Good luck to you both.