The person charged with the duty of final disposition of the body of a deceased person is entitled to the custody of such body for the purpose of arranging for final disposition. When the coroner is required to hold an inquest, however, the coroner is entitled to the custody of the body until such inquest has been completed.
N.D.C.C. § 23-06-02