is there another way to give property to my child? should I sell property or will property to my child?

When transferring rental property to your child, is it better to sell it to them or leave it to them in a will? Both have their advantages and disadvantages.