Firmer than tofu, tempeh often works better as a direct substitution for both meat and nuts.