the best cheese for using instead of gruyere in mac and cheese is emmental. this cheese is very similar to gruyere, and has a similar flavor profile and melting properties. this should lend itself well to replacing gruyere in your recipe.