What would be different from spending that time making a few PRs to an open source project or just building something from scratch to demonstrate your skills?
A lot of engineers that I've worked with have never spent time on leetcode and struggle to answer the common interview questions that aren't easy or low medium, so personally I don't see it as that much different, there's time required either way. One is productive, one isn't.