I had the same issue, but seemed to figure out what was wrong for me. For me it was a problem with the HUD scale. If it was set to 125% You couldn’t cancel a unit or tech, but at 100% it worked just fine.
Yeah. The other commenters were right. It has to do with the HUD scale. I had it set to 125. For me, anything past 118 gives me the effect. 118 works. 119 and up gives me problems.
Yes I mentioned this problem in steam forums several time but no one responded. Scaling the UI above 100% makes canceling first unit/technology impossible by mouse click.
Yes this bug exists in the latest build as well.