The physics change entirely when its Air to Air laser defense vs Ship to air laser defense.
There are numerous things that shift the math
1. Speed difference
The Stealth fighter is moving at mach 2 The Ship is moving at 40 mph
A fleeing stealth fighter will be able to fire at the incoming missile far longer
2. Atmospheric difference
At sea level, humidity, salt spray, and atmospheric thermal turbulence absorb beam energy, causing thermal blooming
At Sea Level: Air density is 100%. A 100 kW laser beam diverges quickly and may struggle to keep a tight focal point beyond 3 to 5 km.
At 45,000 Feet: Air density drops by 80% down to roughly 20% and water vapor is almost zero.
3. Missile types and threat profiles
The missile likely to take down a stealth fighter is a infrared air to air missile. They have glass domes that allow light and heat to enter. Thus vulnerable to getting blinded
The missile likely to take down a ship is a hypersonic antiship missile, is likely using a AESA seeker and sporting a extremely tough and heat resistant ceramic dome. You cannot blind a AESA seeker, a ship would need a hard kill and to try to burn through a missile body designed to survive the extreme heat and force of moving at hypersonic speeds at low altitudes.
------------------------------------------------------
The physics change entirely, it makes tons of sense from a physics standpoint to have a defensive laser on a fighter jet to defend from air to air missiles. A laser system would prevent infrared missiles from hitting your stealth jets.
While for ships it makes no sense, A laser system can't burn through a hypersonic antiship missile fast enough and will just be a waste.
And before you bring up, muh power the J-36 has 3 engines this is why the chinese put in a 3rd engine inside their 6th gen fighter, the intent of the design was always to install a defensive laser