IUD or the pill?

lidia
has anyone had an IUD? i want to get one rather than taking the pill. which kind is best? does it hurt? what are the side effects of it?