. . "ndant???s case otherwise disposed of, until a written report of investigation by a probation officer has been presented to and considered by the court, if the defendant is so convicted for the first time in this state; but any court may, in its discretion, order a presentence investigation for a defendant convicted of any crime or offense other than a capital felony under the provisions of section" . . .