This. Assertions are like improved comments, since comments inevitably get outdated.
Most production code I’ve seen have tons of assertions, so I don’t consider it a problem as long as it’s used for conditions that should never occur.
That said, in most environments I’ve worked with you can disable assertions in release mode.