When a person is charged by law with the duty of interment he is entitled to the custody of the remains for the purpose of interment or, with respect to cremated remains, for the purpose of burial at sea in accordance with the provisions of this division; except that in any case where a coroner is required by law to investigate the cause of death, the coroner is entitled to the custody of the remains of the person whose death is the subject of investigation until the conclusion of the autopsy or medical investigation by the coroner. Any person in whose possession such remains are found, shall, upon demand by the coroner, surrender such remains to him.
Ca. Health and Saf. Code § 7102