Diabetes drug semaglutide is sometimes used for heart disease and weight loss. But it has a number of side effects that may make it risky to use for weight loss alone, including constipation.