Choose a Cheese by What It Needs to Do
A topping, a filling and a cheese board ask for different things.

Name its role
Work backwards from the bite you want. A mild melting cheese can bind a toasted sandwich, while a firm cheese shaved over a finished dish adds a distinct flavour. Decide which role matters most before comparing brands.
Use what you have on purpose
If you only have a strong hard cheese, grate a little into the filling for flavour and accept that the texture may differ from the original recipe. For cold dishes, taste the cheese with a small spoonful of the other ingredients before adding salt.
Buy for the next meal as well
Think of a second use for the remainder while you are shopping. The same piece that tops pasta tonight can go into a sandwich tomorrow. If you only have one use in mind, a smaller pack may make more sense than a multi-buy.
Separate melting, browning and finishing
For a toastie, decide whether you want a smooth middle or a strong accent. A cheese can be good at one job and unhelpful at the other. Try the melt on a small scrap of bread before committing to four sandwiches. For a dish that only needs a savoury finish, a few shavings can be more useful than a full melted layer.
For a baked dish, check whether the recipe calls for cheese across the top or mixed through the filling. Those positions expose it to different amounts of heat and moisture. If you are substituting, try the cheese on a small portion rather than changing all the ingredients at once. Judge the finished texture, not how the grated cheese looks before cooking.
Work through two substitutions
Suppose you planned sandwiches and have a little mature cheddar and a mild cheese already in the fridge. Try using the mild one for most of the filling and a small amount of mature cheddar for flavour. Taste the first sandwich before adding mustard or another salty ingredient to the rest. If you only have the mature cheddar, a thinner layer can be enough; keep it away from the edge where it may spill into the pan.
For a cold lunch, use the opposite test. Put the cheese on a bite with the other ingredients and taste it at the temperature you will serve it. A crumbly cheese can work beautifully over a bowl but fall out of a sandwich unless something holds it in place. Change the format if the texture is the problem.
Decide what to buy by the second use
When comparing packs, note the size you can actually use rather than only the price per unit. If you need a small amount to finish pasta, ask whether the rest will go in a toastie, salad or another meal you already plan to make. If the second use would require buying several more ingredients, the smaller portion may still be the better purchase.
Keep the package information and follow its storage, date and handling instructions. If preparing food for someone else, ask about their dietary needs and check the ingredient and allergen information rather than making assumptions based on the style of the cheese. Make a note of the substitution that worked so you can buy for the dish next time.