The defendant was convicted of drug offenses at a bench trial in the District Court. He requested a jury trial de novo. Thus, any errors that may have occurred during the bench trial are without consequence. Foley v. Lowell Div. of the Dist. Court Dep’t, 398 Mass. 800, 803 (1986). In a jury session of the District Court, the charges were first amended to charges of cultivation of THC (a chemical found in marihuana) and of marihuana, and of pos*727session of both substances with intent to distribute. Subsequently, the charges were reduced to simple possession or cultivation of THC and marihuana, and the defendant waived trial by jury.
Before trial, the defendant filed a motion to dismiss the complaints “on the ground that any possession of controlled substances by the [djefendant is within the [djefense of [mjedical [njecessity.” The motion states that counsel “wishes to present a clear record for the reviewing court,” and therefore requests the court to “state that it is denying the [djefendant the right to assert a defense of medical necessity as a matter of law.” This, the motion states, would “prevent the [djefendant from having to call witnesses, many of whom [would be] paid medical experts, from Boston and Washington D.C. in an idle ceremony where such witnesses will not be allowed to testify.” After a hearing, a judge complied, and endorsed the motion, “10/24/85 Motion denied. Defendant] will not be allowed to introduce [evidence] re defense of medical necessity.” Following a bench trial, the defendant was convicted of both reduced charges, and appealed. The defendant’s sentences were stayed pending appeal. Due to missing transcripts and exhibits, there was a delay of over four years in docketing the case in the Appeals Court. Ultimately, the appeal was docketed, and we transferred the case to this court on our own initiative. We now affirm the convictions.
In support of his motion, as an offer of proof, the defendant submitted affidavits, excerpts from his medical records, literature on a disease known as progressive systemic sclerosis (scleroderma) and on the medicinal uses of marihuana and other materials. Through these materials, the defendant offered to prove the following facts: The defendant is a forty-seven year old man who has been diagnosed as having sclero-derma accompanied by Raynaud’s phenomenon, related to his service in the Navy. Scleroderma is a chronic disease that results in the buildup of scar tissue throughout the body. The cause of scleroderma is not known and no effective treatment or cure has been discovered. In the most severe cases, sclero-*728derma may result in death. The defendant’s medical history includes episodes of fatigue, hypertension, loss of appetite, weight loss of up to twenty-five pounds, diarrhea, nausea, vomiting, reflux of food and stomach acid into the mouth, reduced motility and constriction of the esophagus, extreme difficulty and pain in swallowing, and swollen, painful joints and extreme sensitivity to the cold in his hands and feet. He also suffers from severe depression, related at least in part to his disease, and was briefly hospitalized after attempting suicide. As a result of his illness, the defendant has been unable to work since 1978.
According to the offer of proof, the defendant’s medical condition has been unsuccessfully treated with numerous medications and therapies by physicians of the Veterans Administration. The constriction of his esophagus has been treated by dilation and in 1974 was so severe that his treating physician advised him to have his esophagus surgically removed and replaced with a piece of his own intestine. The defendant has informed his treating physicians that since 1975, with some success, he has used marihuana, in lieu of antidepressants and surgery, to alleviate certain symptoms of his illness including nausea, loss of appetite, difficulty in eating, drinking or swallowing, loss of motility of the esophagus, spasticity, hypertension, and anxiety. Two of his treating physicians state that, although they are unable to “confirm [the defendant’s] claim that his use of mari[h]uana has caused his remarkable remission, ... it does appear that his use of mari[h]uana does alleviate the previously mentioned symptoms.” These two physicians also state that “there appears to be a sufficient basis to conduct a scientific and medical investigation into the possible use of mari[h]uana to treat the disease of scleroderma.” A research study of its therapeutic potential and medical uses indicates that the use of marihuana, indeed, may be effective to treat loss of appetite, nausea, vomiting, and weight loss and may relieve severe anxiety and depression. One of the defendant’s other treating physicians, however, does not find that marihuana “had any effect in [the defendant’s] case” and that he is “unaware of *729any published or unpublished evidence of [a] beneficial effect of mari[h]uana in this condition.” Through correspondence with his physicians, the Veterans Administration, and members of the Massachusetts Legislature and the United States Congress, the defendant has made numerous, albeit unsuccessful, attempts lawfully to obtain either a prescription for marihuana or permission to participate in a research study on the use of marihuana to treat scleroderma. The Massachusetts Legislature has considered a bill providing for the use of marihuana in therapeutic research on more than one occasion, but no such statute has been enacted in the Commonwealth. The Veterans Administration has determined that presently there is no research study on the use of marihuana to treat scleroderma and therefore will not dispense marihuana for the defendant’s treatment.
In Commonwealth v. Hood, 389 Mass. 581, 595 (1983), quoting Commonwealth v. O’Malley, 14 Mass. App. Ct. 314, 325 (1982), we said, “It is, perhaps, ‘more prudent for the judge to follow the traditional, and constitutionally sounder, course of waiting until all the evidence has been introduced at trial before ruling on its sufficiency to raise a proffered defense. If, at that time, the defendant has failed to produce some evidence on each element of the defense, the judge should decline to instruct on it. . . . In that event, the judge, may if appropriate, give curative instructions to caution the jury against considering evidence not properly before them’ (citations omitted).” However, the defendant cannot fairly complain about the procedure adopted by the judge in this case if, as the Commonwealth contends and the judge appears to have concluded, the proof offered would not support a necessity defense. Our question, then, is whether, if the defendant were able to prove by admissible evidence at trial the facts contained in the offer of proof, a properly instructed fact finder could determine that the defendant had established the defense which he asserts.
“Under the common law defense of justification by necessity, a crime committed under the pressure of imminent danger may be excused if the harm sought to be avoided far *730exceeds the harm resulting from the crime committed.” Commonwealth v. Schuchardt, 408 Mass. 347, 349 (1990), citing Commonwealth v. Hood, supra at 590, and Commonwealth v. Brugmann, 13 Mass. App. Ct. 373, 376-377 (1982). “In essence, the ‘competing harms’ defense exonerates one who commits a crime under the ‘pressure of circumstances’ if the harm that would have resulted from compliance with the law significantly exceeds the harm actually resulting from the defendant’s violation of the law. At its root is an appreciation that there may be circumstances where the value protected by the law is, as a matter of public policy, eclipsed by a superseding value which makes it inappropriate and unjust to apply the usual criminal rule. See generally LaFave & Scott, Criminal Law § 50 (1972); Arnolds & Garland, The Defense of Necessity in Criminal Law: The Right to Choose the Lesser Evil, 65 J. Crim. L. & Criminology 289, 291-296 (1974).” Commonwealth v. Brugmann, supra at 376-377.
“We have ruled that ‘the application of the defense is limited to the following circumstances;. (1) the defendant is faced with a clear and imminent danger, not one which is debatable or speculative; (2) the defendant can reasonably expect that his [or her] action will be effective as the direct cause of abating the danger; (3) there is [no] legal alternative which will be effective in abating the danger; and (4) the Legislature has not acted to preclude the defense by a clear and deliberate choice regarding the values at issue.’ ” Commonwealth v. Schuchardt, supra at 349, quoting Commonwealth v. Hood, supra at 591. See Commonwealth v. Brugmann, supra at 379. It must be understood, however, that that oft-repeated principle, that the necessity defense is limited to certain specified circumstances, does not mean that, whenever those circumstances obtain, the defense automatically applies. Rather, the first question always is whether the harm that would have resulted from compliance with the law significantly outweighs the harm that reasonably could result from the court’s acceptance of necessity as an excuse in the circumstances presented by the particular *731case. Only when a comparison of the “competing harms” in specific circumstances clearly favors excusing what would otherwise be punishable conduct, is it appropriate then to inquire whether the standards enumerated in the cases cited above, standards which themselves do not call for a comparison of competing harms, have been met.
We mention two illustrative cases. In Commonwealth v. Thurber, 383 Mass. 328 (1981), the defendant was convicted of escape from the Massachusetts Correctional Institution at Concord. At the trial, the defendant presented evidence that he had escaped because his life was in imminent danger at the prison. Id. at 329. In discussing the necessity defense, id. at 330, we quoted with approval a statement in a California case of the circumstances in which an escape from prison might be excused, one of the circumstances being that the escape be accomplished without violence, and another being that “[t]he prisoner immediately reports to the proper authorities when he has attained a position of safety from the immediate threat.” People v. Lovercamp, 43 Cal. App. 3d 823, 831-832 (1974). In Thurber, supra at 330, we “[a]ssum[ed] that we would apply the doctrine [of necessity] as a justification for escape in a proper case.” The extent of public harm likely to attend a peaceful escape from prison, followed by the prisoner’s prompt submission to the authorities, would be minimal compared to the likely harm to the prisoner, as demonstrated by the defendant’s evidence in Thurber, if he were to comply with the law. Common sense tells us that, in the absence of a clear and specific contrary statutory expression, the court would not frustrate legislative intent in a Thurber-type situation by recognizing a necessity defense.
Commonwealth v. Iglesia, 403 Mass. 132 (1988), provides another illustration. There, the defendant was charged with unlawfully carrying a firearm. He testified that he was attacked by a man with a gun, that he wrested the gun from the man, and that he immediately went to the police station with it. Id. at 133. Again, as we did in Commonwealth v. Thurber, supra, we “assume [d] . . . that, when ‘a defendant *732seizes a firearm from one who had expressed an immediate intention to use it, and flees to a place of safe-keeping,’ Commonwealth v. Weaver, 400 Mass. 612, 615 (1987), such possession might be lawful.” Id. at 134. In Iglesia, as in Thurber, the likely harm to society that would be likely to result from recognition of a necessity defense, carefully limited as to circumstances, would be significantly outweighed by the potential harm to the defendant, if his evidence were to be believed, if he were to comply with the law. It is fair to assume, in the absence of a specifically expressed contrary legislative intent, that judicial recognition of a necessity defense in the circumstances of the Iglesia case would not contradict any legislative policy determination.
Accepting the defendant’s offer of proof, and assuming, as we do without decision, that the circumstances referred to above as enumerated in Schuchardt, Hood, and Brugmann obtain, nevertheless we rule that the defendant’s proffered evidence does not raise the defense of necessity. In our view, the alleviation of the defendant’s medical symptoms, the importance to the defendant of which we do not underestimate, would not clearly and significantly outweigh the potential harm to the public were we to declare that the defendant’s cultivation of marihuana and its use for his medicinal purposes may not be punishable. We cannot dismiss the reasonably possible negative impact of such a judicial declaration on the enforcement of our drug laws, including but not limited to those dealing with marihuana, nor can we ignore the government’s overriding interest in the regulation of such substances. See Commonwealth v. Nissenbaum, 404 Mass. 575, 583 (1989). Excusing the escaped prisoner in the circumstances presented by Thurber, supra, or the carrier of a gun in the circumstances of Iglesia, supra, is quite different from excusing one who cultivates and uses marihuana in the circumstances of this case.
Judgments affirmed.