Neither term nor whole life insurance is inherently better. It really depends on how well each one fits your life and budget.
Term life insurance is more affordable, but it expires after a set number of years.
Whole life insurance is more expensive, but it remains in place as long as you continue to make payments and sometimes offers cash value incentives.