Collecting sperm at home or onsite?

When doing an <a href="https://glowing.com/glow-fertility-program">IUI</a> or <a href="https://glowing.com/glow-fertility-program">IVF</a> did your partner choose to do a at home sample or on-site at the clinic?

Both times he did at the clinic and felt awkward and sample wasn’t the greatest but were thinking about at home collection for <a href="https://glowing.com/glow-fertility-program">Ivf</a> so he can feel more comfortable but heard you have to keep the sperm warm and get there within a certain time. Any advice? Or does it make a difference?