What is the difference between
web3.eth.getAccounts(). In both cases, I always get the value, which is the currently selected account in Metamask.
Note: The question is relative to a public-facing dApp. i.e. UI that uses web3.js & interacts with a user's crypto wallet Metamask. It is not for local blockchain development.