Viagra, also known as sildenafil, is primarily used to enhance sexual performance, whereas Vyleesi is intended to address issues related to sexual desire. Viagra functions by widening the blood vessels that supply blood to the penis, facilitating better blood flow during sexual activity.