A council has said there is "no alternative" to converting a golf course into a graveyard to address a burial space shortage.