Should I consent to a search if I have nothing to hide?

No.

There is no reason to allow law enforcement to violate your privacy and your constitutional rights, even if you have done nothing wrong. Sometimes people have things that they don't realize are illegal, and sometimes other people have brought things that are illegal into your vehicle or home. Never consent to a search, and don't give up any constitutional rights without first consulting with an attorney.