IUI involves the direct placement of sperm into the uterus, while IVF entails the surgical retrieval of eggs, fertilization outside the body with sperm, and subsequent transfer into the uterus once they develop into embryos.