Many people will tell never mine directly to an exchange. I will disagree with that. There are exceptions.
If you plan on selling whatever you're mining right away, that's not a bad strategy, because you're not storing your coin on exchange. You're using the exchange for its purpose - exchange.
If you plan on keep that coin for a while, perhaps it's not advisable. However, I will disagree with that one.
Some exchanges are reasonable safe, like coinbase. Most spot btc etf use coinbase as their custodian. It's been disclosed vp elect vance holds his btc on coinbase. I just find it hard to believe all these entities with billions dollar worth of btc are wrong.
I mine everything to exchange if possibe, except spec mine coins which do not have exchange.
At the end of day, you have to decide for yourself what works best for you.
Your self custody wallet can get hacked and drained. No one will reimburse you if that happens. Exchange might reimburse you if the exchange did not suffer massive loss. It was not too long ago someone here complained that their zelcore wallet or something was drained. If you want to store your crypto on an exchange, coinbase is probably the safest.
At least most of the big boys (the etf with billions $ worth) use coinbase as their custodian. Only fidelity has self-custody for their btc.