YouTube does use the metadata (title, description, categories) that you enter for the video to determine relevance and then uses view time-related metrics to determine rank.
However, Google and YouTube rank videos differently. YouTube does use the metadata (title, description, categories) that you enter for the video to determine relevance and then uses view time-related metrics to determine rank.