Among the given options, only "methylpropanoate" is not a hydrocarbon. This is because a hydrocarbon is a compound made up of only hydrogen and carbon atoms. "Methylpropanoate," on the other hand, contains an additional oxygen atom in its structure, making it an ester compound. In contrast, "2-methylbutane," "benzene," and "cyclohexane" are all hydrocarbons as they contain only hydrogen and carbon atoms in their structures.