The idea of a take home originally appealed to me, but my actual track record with them is very poor. They are usually too open ended - sometimes they'll say to write some service, that it shouldn't take more than an evening, and then you're left questioning how much they're expecting. Do they want a quick proof of concept? Do they want unit tests? Acceptance tests?
Then there's the follow up - often a rejection with no comments on the code whatsoever. Or you get completely ghosted. Or, and this is the real kicker - they finally ask you to come in, where they have you do leetcode on a whiteboard anyway.
If the process was "Here's what we're expecting, turn it in by X date, we'll have you do a review with the team, and assuming all goes well, we'll talk about an offer at that point" I would be a lot more open to them. But that's never the process.