Why don't we lay eggs?

Some animals lay eggs, and their young hatch out of them. Other animals give birth to live young. But which strategy is best?