From Diffusion to One-Step Generation: A Comparative Study of Flow-Based Models with Application to Image Inpainting