Damini in Soi Post Office give a better rate and are open 24 hours but don't have the branch network of TT.
When withdrawing at ATMs the exchange rate is set by the payment processor, usually Visa or Mastercard, unless you choose otherwise. With no bank fees this is one of the most efficient ways to get cash abroad. It was similar in Thailand before the ATM fee came along.