Birth control

Which method is more effective? The shot or the pill? I know that you shouldn't just rely on the pill or the shot because neither of them is absolutely 100% effective. But which works more and has less side effects?