Using a water bath when baking a cheesecake is not mandatory but is recommended, as it helps to evenly distribute heat, prevent the top from cracking, and maintain a creamy texture.