A Ugandan lawmaker on Friday refused to withdraw proposed legislation that would impose the death penalty for some gays and lesbians despite international condemnation and presidential opposition to a measure that could scare off foreign investors .