As its name suggests, extra-firm tofu is denser and has a lower water content when compared to firm tofu. Hence, it will hold up better during cooking.  For this recipe, you can use firm tofu in a pinch but do press them using a tofu press or stacking something heavy on top before using.