You always choose a reliable dependency not something random. I never had similar experience or saw a project doing that.
You should only version composer.lock and composer.json files. Ignore vendor directory and leave that job to your build step in CI/CD...