Get discount price with including tax while tax is set as excluding

Retrieve discount price including tax when tax is excluded.

/**
 * To get discount amount for the specific products
 * If there is no discount it return null value.
 */
$price_incl_tax = wc_get_price_including_tax($product, array('qty' => 1));
global $flycart_woo_discount_rules;
if(!empty($flycart_woo_discount_rules)){
    $discounted_price = $flycart_woo_discount_rules->pricingRules->getDiscountPriceOfProduct($product);
    if($discounted_price !== null){
        $price_incl_tax = wc_get_price_including_tax($product, array('qty' => 1, 'price' => $discounted_price));
    }
}
echo wc_price($price_incl_tax);