Generally, a uncoerced confession to officers isn't immediately invalid, but its acceptance in court is a tricky matter. The key factor is whether it was obtained legally. Police must adhere to specific guidelines, https://panchanandshaw.com/blog/counter-claim-explained/