Auto Claim Where Insurer Wants to Total Car

I have heard of totaling and buying the car back. Keep in mind that insurance companies are basically crooks.