You can give discounts by creating coupon codes for your Magento 2 store so that the customers can use coupon code and avail the discounts.
Learn the programmatic method to create coupon code in Magento 2
Learn the programmatic method to create coupon code in Magento 2