Hard money loans versus rehabilitation loans

Hello again to everyone reading this post, my inquiry is in regards to rehab loans offered by traditional lenders versus hard money loans, can any seasoned investors provide a criteria to follow when it is feasible to select a hard money loan over a traditional rehabilitation loan or vice-versa?

Example:
Would a traditional rehab loan be more practical to utilize if you are going to buy, rehab, and lease option for a year (in comparison to the hard money loan)

or

Would a traditional rehab (in comparison to the hard money loan) loan not be suitable if you are going to buy rehab, with immediate plans to flip? (3-4 month time duration after rehab)

Thanks for reviewing this post, good day to all.