The commission paid by the bank is recouped by the bank by raising the interest rate slightly. One way or the other it's paid.
The broker issue is stems from they wont look at loans that dont offer commission, these are often cheaper. And potentially an unethical one will push you to a worse loan that pays them more.
IMO brokers have a much more limited benefit these days with easy to use comparison sites but still serve a purpose for more complex transitions and people that are low in financial literacy.