Is It Really A Google Ranking Factor?
It has been verified that there is a separate search console for subdomains, but this is not the case in the case of subdirectories.
This makes it absolutely clear that Google treats the subdomain as a separate website.
This does not mean at all that you will use subdomains or subdirectories, so it can be a Google ranking factor.