They fit in different part of the hiring processs. A side project is something that potentially makes your resume more attractive and makes it more likely you get a callback/interview. Leetcode is a technical test which comes later.
Being the best leetcoder doesn't make a difference if you don't get an interview.
Being the best leetcoder doesn't make a difference if you don't get an interview.