which one??

i’ve had a history of migraines and my doctor said that i should either get the IUD or the implant. which one is better?