It's not always the case, sending tainted coins from gambling or mixers will always get you to trouble, i'm talking to reputed exchanges with lots of users and volume. Talking about the "guess" of blockchain analysis as an excuse from new and unreputed exchanges will have a higher chance compared to reputed ones.
How do you determine which utxo is tainted, take note that there is nothing such as tainted BTC, and that term is simply used by custodial services to confiscate people's funds and attack BTC's fungibility. Anyone can use a gambling site or a privacy solution, and it does not mean they are involved in anything illicit.
My point here is that, it is better to understand that any exchange, it does not matter which it is, can confiscate funds deposited into it, for any reason at all.