Exactly this.
I should add, that EVERY elite athlete (and their coaches) is aware of what they can and cannot take, and none are expected to be so stupid as to blindly go into a chemists and simply ask for something without checking the list of proscribed substances first.
IF Team Sky was - as has been alleged - handing out Tramadol like smarties before races, then that IMHO is cheating, because Tramadol is an extremely powerful painkiller, and it would enable athletes to push themselves beyond what they are normally capable of.
Back in the mid nineties, I had to take a break from racing because my GP prescribed Salbutomol (inhaler) after I had complications following a severe case of Bronchitis. To be fair, remembering how I felt, the temperature I had and my heart rate up in the mid eighties (normally 45 BPM at rest) I couldn't have cycled 100 metres, let alone 100 miles.
As I have said before, Team Sky did NOT sign up to the MPCC, and that rang alarm bells, because if they really believed in a clean sport they would have done so. The MPCC believes that TUE's should be banned, and riders who have to take proscribed medication should take a break from cycling.
When you start applying for TUE's as a "preventative measure", before the rider falls "ill", just before a grand tour - TdF, Vuelta, Giro, and this is not disclosed to the general public, but comes out as part of hacked information - then that IMO is a clear form of cheating.
Unfortunately, this is not the first scandal to hit British cycling this year, as we had the Lizzie Armitstead missed tests fiasco, where she was IMO very fortunate not to get a ban.