Cart created with "BOGO" discount code does not have the same quantity products as checkout page?

I am having an issue with merchandise quantity on the checkout page. I am using the Shopify Storefront API version 2023-04. When I run a cartCreate mutation and add merchandise with quantity greater than two, and apply a discount a discount code with a type of “Buy X get Y”, the checkout page returned by the checkoutURL will have one less product than the quantity that was added to the createCart mutation.

Steps to reproduce
1: Create cart

2: Update cart with buy one get one discount code

3: Navigate to checkout page using the url returned showing one less product