I aimed for a 10-15° leg bend at full extension for better power output and comfort. When I got into road cycling in 2020 I played around with it a lot, watched an absolute ton of videos on bike fit.
At the end of the day though whatever works for you and doesn't cause injury is right!