rap: (noun) a sharp knock or hit; type of music; informal talk, chat; blame, responsibility, consequences, punishment
Used in the expression “to get a bad rap.”
wrap: (noun) wrapping paper; an outer garment; sandwich filling rolled in a tortilla; the end of a filming or recording session
NOT used in the expression “to get a bad rap.”