I'm a qualified plumber and (when i was working) a silicone sealant professional.
You can seal the gap between pan and cistern without affecting its function. If the inlet valve isn't shutting off it'll overflow to the outside of the house via a pipe or on a more modern system, visibly unto the pan. If water is escaping from between pan and cistern you'll need to replace or refit the rubber donut.
You'll need to ensure that the two surfaces are clean and dry. I use blue paper towel to mop it out and then a heat gun. A hair dryer would do the job.
Use the best silicone sealant you can find. I use triple protection, mould resistant stuff.
Don't use the quick dry stuff, its sh!te.
Only apply enough to do the job. Be kind to your future self. If you squeeze a sh!t ton in there you'll just make taking the cistern off more difficult / time consuming.
Use a profiling tool to get a nice profile on the silicone after you've applied it. Use the profile shape that's going to give you a smooth transition between surfaces - to make it easier to clean. You can also mask off either side of the the area to be sealed with tape to help keep the silicone under control.
May i suggest that you invest in a quick release toilet seat? The have a push button which releases the whole assembly off its pins, so you can chuck it in the bath to wash it and making cleaning the pan much easier.
I would just add: real men sit to p!ss. It's actually a thing in Scandinavia and Germany. It's considered extremely socially unacceptable to stand at a regular toilet.